-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
return address.balance returns strange value #16999
Comments
I've hit the exactly same issue on Rinkeby for |
We've discussed this; the better solution is to make |
EDIT: yes, we set the balance in
This is just plain wrong, we don't even check if it already has a balance (which can be set via overrides) |
…20783) Prior to this change, eth_call changed the balance of the sender account in the EVM environment to 2^256 wei to cover the gas cost of the call execution. We've had this behavior for a long time even though it's super confusing. This commit sets the default call gasprice to zero instead of updating the balance, which is better because it makes eth_call semantics less surprising. Removing the built-in balance assignment also makes balance overrides work as expected.
…16999 (ethereum#20783) Prior to this change, eth_call changed the balance of the sender account in the EVM environment to 2^256 wei to cover the gas cost of the call execution. We've had this behavior for a long time even though it's super confusing. This commit sets the default call gasprice to zero instead of updating the balance, which is better because it makes eth_call semantics less surprising. Removing the built-in balance assignment also makes balance overrides work as expected.
Originally opened at remix
Then at MetaMask
Then here at Geth (but I think mis-represented, so prematurely closed).
Solidity:
Returns unusual balances when requested from Geth via an eth_call.
For any address, returns:
The text was updated successfully, but these errors were encountered: