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 checked there isn't already an issue for the bug I encountered.
Viem Version
latest
Current Behavior
When using viem with wagmi to interact with OP-Stack and extending the client with walletActionsL1(), everything works fine when conducting transactions directly with the extended wallet client.
However, when connecting via WalletConnect (e.g., MetaMask or TrustWallet), attempting to execute a bridge transaction fails with the following error:
`TransactionExecutionError: The requested method and/or account has not been authorized by the user.
Request Arguments:
chain: Sepolia (id: 11155111)
from: 0x97632B3760460A623E068CC70aBF11D5fA99Be5f
to: 0xBAAf3BAfdbd660380938b27d21c31bB7D072a799
value: 0.00000000000001 ETH
data: 0xe9e05c4200000000000000000000000097632b3760460a623e068cc70abf11d5fa99be5f00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000005208000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000
gas: 63214
Details: The requested account and/or method has not been authorized by the user.
Version: [email protected]
at getTransactionError (getTransactionError.js:18:12)
at sendTransaction (sendTransaction.js:141:105)
at async Object.mutationFn (page.tsx:407:29)Caused by: UnauthorizedProviderError: The requested method and/or account has not been authorized by the user.
`
Expected Behavior
The transaction should proceed without an authorization error after connecting via WalletConnect.
The extended wallet client should function the same way as with direct wallet connections.
Steps To Reproduce
I've set up a wagmi/next playground with an OP-Stack section reproducing the issue:
🔗 GitHub Repository
Connect using WalletConnect (e.g., MetaMask or TrustWallet).
Attempt to execute a bridge transaction via the extended client.
Observe the error message related to unauthorized account/method.
Check existing issues
Viem Version
latest
Current Behavior
When using viem with wagmi to interact with OP-Stack and extending the client with walletActionsL1(), everything works fine when conducting transactions directly with the extended wallet client.
However, when connecting via WalletConnect (e.g., MetaMask or TrustWallet), attempting to execute a bridge transaction fails with the following error:
`TransactionExecutionError: The requested method and/or account has not been authorized by the user.
Request Arguments:
chain: Sepolia (id: 11155111)
from: 0x97632B3760460A623E068CC70aBF11D5fA99Be5f
to: 0xBAAf3BAfdbd660380938b27d21c31bB7D072a799
value: 0.00000000000001 ETH
data: 0xe9e05c4200000000000000000000000097632b3760460a623e068cc70abf11d5fa99be5f00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000005208000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000
gas: 63214
Details: The requested account and/or method has not been authorized by the user.
Version: [email protected]
at getTransactionError (getTransactionError.js:18:12)
at sendTransaction (sendTransaction.js:141:105)
at async Object.mutationFn (page.tsx:407:29)Caused by: UnauthorizedProviderError: The requested method and/or account has not been authorized by the user.
`
Expected Behavior
Steps To Reproduce
I've set up a wagmi/next playground with an OP-Stack section reproducing the issue:
🔗 GitHub Repository
Link to Minimal Reproducible Example
https://github.com/danielsimao/wagmi/blob/chore/playground-op-stack/playgrounds/next/src/app/page.tsx
Anything else?
No response
The text was updated successfully, but these errors were encountered: