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.
Describe the bug
I have a checkout flow that supports sponsoring the gas using the paymasterService.
When I initiate a transaction using writeContractsAsync I extract the hash afterwards and add it to my transaction object, which is then used to feed the transaction hash to the useWaitForTransactionReceipt hook.
After that's done, the transaction is stuck pending, never returns an error. Network tab confirms it by endless null results from the RPC calls.
I have made sure that the hash is valid (looking it up on basescan was successful), and that the chain given to the hook matches the one transaction was done on.
Example of the RPC calls:
Expected behaviour
Executing transactions using walletClient.writeContract works perfectly fine, and would expect to work the same when using writeContractAsync
Connect to an account abstracted wallet (I use coinbase smart wallet).
Make sure you have added a valid paymaster link and have verified the 0x41Aa48Ef3c0446b46a5b1cc6337FF3d3716E2A33 contract for it.
Initiate the transaction and check the console where the states from useWaitForTransactionReceipt will be displayed, and check the network tab to see the coresponding RPC calls-
What Wagmi package(s) are you using?
wagmi
Wagmi Package(s) Version(s)
2.14.16
Viem Version
2.26.3
TypeScript Version
5.3.3
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Check existing issues
Describe the bug
I have a checkout flow that supports sponsoring the gas using the paymasterService.
When I initiate a transaction using
writeContractsAsync
I extract the hash afterwards and add it to my transaction object, which is then used to feed the transaction hash to theuseWaitForTransactionReceipt
hook.After that's done, the transaction is stuck pending, never returns an error. Network tab confirms it by endless null results from the RPC calls.
I have made sure that the hash is valid (looking it up on basescan was successful), and that the chain given to the hook matches the one transaction was done on.
Example of the RPC calls:
Expected behaviour
Executing transactions using
walletClient.writeContract
works perfectly fine, and would expect to work the same when usingwriteContractAsync
Link to Minimal Reproducible Example
https://stackblitz.com/edit/new-wagmi-fkukg35a
Steps To Reproduce
Connect to an account abstracted wallet (I use coinbase smart wallet).
Make sure you have added a valid paymaster link and have verified the 0x41Aa48Ef3c0446b46a5b1cc6337FF3d3716E2A33 contract for it.
Initiate the transaction and check the console where the states from useWaitForTransactionReceipt will be displayed, and check the network tab to see the coresponding RPC calls-
What Wagmi package(s) are you using?
wagmi
Wagmi Package(s) Version(s)
2.14.16
Viem Version
2.26.3
TypeScript Version
5.3.3
Anything else?
No response
The text was updated successfully, but these errors were encountered: