You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to get an event about the type of wallet that user has connected to i.e, whether the wallet is injected one or not?
Expected Behavior
Need to work same provider for injected wallets and other wallets as well.
Steps To Reproduce
Can you please let us know how to reuse same provider for injected wallets and other ones.
Like I am using the following structure in my Application:-
-Firstly I've a connectWallet file where I've initialized wallet connectivity.
-second file is where I've instance setup.
-third one is where I've defined send METHODS
Now whenever I'll make any transaction using the same provider that I had initalized while invoking the Onboard.connect() method,it is working fine with injected wallets but facing issue with wallet connect(not injected).
What package is effected by this issue?
@web3-onboard/core
Is this a build or a runtime issue?
Runtime
Package Version
"^2.8.11",
Node Version
v18.17.1
What browsers are you seeing the problem on?
Chrome
Relevant log output
send method does not exist on provider
Anything else?
No response
Sanity Check
If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.
The text was updated successfully, but these errors were encountered:
Hey @khushnood1037 👋 So I think the issue is in that you are trying to use the deprecated send method. Web3onboard returns an EIP-1193 compliant provider, therefore when calling methods on the provider make sure it conforms to that standard. In this case you want to use the window.ethereum.request method. Let me know if that helps!
@khushnood1037 we are going to close this for now as it has become stale and has a proposed fix above. Please feel free to continue the conversation should the issue persist. Thanks!
Current Behavior
Is there a way to get an event about the type of wallet that user has connected to i.e, whether the wallet is injected one or not?
Expected Behavior
Need to work same provider for injected wallets and other wallets as well.
Steps To Reproduce
Can you please let us know how to reuse same provider for injected wallets and other ones.
Like I am using the following structure in my Application:-
-Firstly I've a connectWallet file where I've initialized wallet connectivity.
-second file is where I've instance setup.
-third one is where I've defined send METHODS
Now whenever I'll make any transaction using the same provider that I had initalized while invoking the Onboard.connect() method,it is working fine with injected wallets but facing issue with wallet connect(not injected).
What package is effected by this issue?
@web3-onboard/core
Is this a build or a runtime issue?
Runtime
Package Version
"^2.8.11",
Node Version
v18.17.1
What browsers are you seeing the problem on?
Chrome
Relevant log output
Anything else?
No response
Sanity Check
The text was updated successfully, but these errors were encountered: