Replies: 1 comment 5 replies
-
|
At the moment, the WalletConnect Connector does not support adding additional methods so only the ones defined in the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an existing issue for this?
Package Version
1.3.3
Current Behavior
Hello,
I am looking to send a custom rpc request to a smart contract wallet wallet connected through web3modal / walletconnect. I am using the hook
useWalletClient.The error happens then
useWalletClientsends the custom requests the default rpc provider instead of to the wallet. So the request is being rejected with the following error, when connected with a wallet through walletconnect.I have tried metamask mobile, rainbow mobile, and candide wallet.
Expected Behavior
The expected behavior is to send the custom request to the wallet directly. Using metamask browser injected provider, the request is sent to the wallet directly, and the error is correct as expected:
Steps To Reproduce
useWalletClient()hookLink to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
https://github.com/Sednaoui/wagmi-web3modal-custom-rpc-error
Anything else?
I am testing on optimism network.
No response
Beta Was this translation helpful? Give feedback.
All reactions