eth_call with gasPrice
attempts to execute with huge gas limit and fails if account is short ETH
#10451
Labels
Sev2-normal
Normal severity; minor loss of service or inconvenience.
type-bug
Something isn't working
Describe the bug
Attempting to do an eth_call to MetaMask via default Ethereum Mainnet endpoint with a
gasPrice
field set will result in the call being executed like a normal transaction but with 125,000,000 gas limit. If the source account doesn't have enough ETH to overgasPrice * 125,000,000
then the call will fail.Note: The error is thrown as an object, rather than an
Error
which means no stack trace which makes it very hard to debug.Steps to reproduce (REQUIRED)
Output:
Expected behavior
The call is executed with the
GASPRICE
opcode set to0x174876e800
but it doesn't attempt to actually spend ETH on gas.Browser details (please complete the following information):
Additional context (Error Messages, etc.)
I suspect the real issue is in whatever client is backing MetaMask's "Ethereum Mainnet" network. I know this bug doesn't occur when using my own Nethermind node, but I don't know what MM is using.
The text was updated successfully, but these errors were encountered: