mantlenetworkio / mantle

Mantle | Mass adoption of decentralized & token-governed technologies. With Mantle Network, Mantle Treasury, and token holder-governed products initiatives.
https://www.mantle.xyz
MIT License
227 stars 101 forks source link

For query, also check whether there is balance to pay the gas fee #294

Closed songyaoshun closed 1 year ago

songyaoshun commented 1 year ago

when the wallet have not l2 BIT and to query L2_BIT_ETH_TOKEN.totalSupply/L2_BIT_ETH_TOKEN.balanceOf, requst errors: {\"jsonrpc\":\"2.0\",\"id\":44,\"error\":{\"code\":-32000,\"message\":\"insufficient balance to pay for gas\"}}

code: image

error messages: image

songyaoshun commented 1 year ago

the localnetwork have not this bug, The possible reasons are testnet l2 ETH contract is different of localnetwork's contract

wukongcheng commented 1 year ago

https://github.com/mantlenetworkio/mantle/pull/317

wukongcheng commented 1 year ago

duplicate with https://github.com/mantlenetworkio/mantle/issues/321