-
Notifications
You must be signed in to change notification settings - Fork 717
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
"balance intrinsic error" since 0.4.1 #2848
Comments
I'm investigating it |
@DefiDebauchery just to give you a context before closing the issue, the error above is returned when the code was not possible to execute the transaction, even for the highest gas limit possible to be set. As you can see, I've merged a PR with some reviews to the This error message is returning, because when estimating the gas your script is setting the When the What you can do in this case is just not set the gas price, add more funds to the account or use an account that already have enough funds to afford the gas price set. For a complementary information about acc and balances related to the default addresses, please check this response: #2869 (comment) |
Apologies for the delay in response, but wanted to mention something:
I'm explicitly setting Gas Price because without it, the web3 library (web3py in this case) was unable to calculate gas due to missing methods on the RPC:
|
No problem, in this case you can go with one of the other 2 options:
|
That's won't always be possible for simulating calls that will be from the source (but not direct executor) of a transaction, such as Safe -> Timelock. In my case, I use this simulation to ensure that permissions are correct and that an existing job isn't already pending on the TL. Will balance-less simulations ever be allowed on zkEvm as they are on all other chains (20 of them) that I successfully do similar calls with? |
I've started encountering the following error when attempting to build a transaction:
unable to apply transaction even for the highest gas limit 30000000: balance intrinsic error
I believe this may have started at version 0.4.1, as this likely would've been raised earlier.
But because I don't know exactly what this error means, I cannot speculate as to why it is occurring (since it's a "balance error", is it failing because it's simulating through a wallet with no balance?)
ready-to-run python code at https://gist.github.com/DefiDebauchery/b4a62540af70d124ed8770b4526e447b
This is not a simple contract reversion, as I can get a revert simply by simulating the call from an address that does not have adequate Ownership to the timelock.
Expected output is a txn payload that can be submitted.
Actual output is the error reported above.
The text was updated successfully, but these errors were encountered: