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
i am not sure why its doing that. I have tried setting the rpcMap in the configuration, but the signer always seems to have httpRpc set to that url. Any ideas on where i can look or what my next steps are? I am trying to avoid re-writing my entire app to get walletconnect v2 working.
i am clearly missing something in how to acquire the proper provider when using walletconnectv2.
as a note all the code works when i use metamask connetor.
The text was updated successfully, but these errors were encountered:
I am use web3-react: 8.1.3-beta.0 on core and 8.5.1 for walletconnect-v2
What i am trying to do is a get an ethers contract like so
new ethers.Contract(address, abi, signer)
address is the address as a string, abi is the abi as a string
signer is where it seems to be my issue i have tried the following methods.
const { provider } =useWeb3React()
const signer = provider.getSigner()
i have also tried using the provided hooks from the initialize connector:
const provider = await hooks.getProvider();
const signer = provider.getSigner();
i have also tried replacing the signer with the web3Provider provided by wallet connect directly.
Anytime i do this i get the error that it can't connect to
https://rpc.walletconnect.com/v1/?chainId=eip155:MYCHAINID&projectId=MYPROJECTID
i am not sure why its doing that. I have tried setting the rpcMap in the configuration, but the signer always seems to have httpRpc set to that url. Any ideas on where i can look or what my next steps are? I am trying to avoid re-writing my entire app to get walletconnect v2 working.
i am clearly missing something in how to acquire the proper provider when using walletconnectv2.
as a note all the code works when i use metamask connetor.
The text was updated successfully, but these errors were encountered: