-
-
Notifications
You must be signed in to change notification settings - Fork 958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usePrepareTransactionRequest
fails eth_maxPriorityFeePerGas
rpc call on MetaMask injected connector
#3865
Comments
I worked around this for now with: const fees = useEstimateFeesPerGas({ chainId });
const prepared = usePrepareTransactionRequest({
chainId,
to,
value,
maxPriorityFeePerGas: fees.data?.maxPriorityFeePerGas,
}); |
I think we can resolve this by not using the connector client for |
This issue has been locked since it has been closed for more than 14 days. If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest wagmi version. If you have any other comments you can create a new discussion. |
Describe the bug
I am using
usePrepareTransactionRequest
, which internally callseth_maxPriorityFeePerGas
using the connector client, which fails on injected MetaMask connector:Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
Wagmi Version
2.6.0
Viem Version
2.9.20
TypeScript Version
5.4.2
Check existing issues
Anything else?
No response
The text was updated successfully, but these errors were encountered: