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
trying to send a transaction with no data may error using rpc providers when there is sufficient funds for gas and values.
For example on metamask RPC Error: err: insufficient funds for gas * price + value, with unexpectedly high gas prices .
This issue is happening due to the sendtransaction method using eth_call to check if the smart contract will revert, but with metamask, eth_call will return an error expecting more gas to be provided.
luu-alex
changed the title
Only checkRevert when data is included in transaction
RPC Error: err: insufficient funds for gas * price + value
Apr 30, 2024
trying to send a transaction with no data may error using rpc providers when there is sufficient funds for gas and values.
For example on metamask RPC Error: err: insufficient funds for gas * price + value, with unexpectedly high gas prices .
This issue is happening due to the sendtransaction method using eth_call to check if the smart contract will revert, but with metamask, eth_call will return an error expecting more gas to be provided.
Transaction sent:
Metamask error
Metamask is returning a revert issue wanting 1.250662775 eth when the transaction only needs atleast 0.005 eth in balance
Bug reported in #6997
Expected behavior
Actual behavior
Steps to reproduce the behavior
Logs
Environment
The text was updated successfully, but these errors were encountered: