-
Notifications
You must be signed in to change notification settings - Fork 897
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
Update eth_call handling of account balance #1834
Conversation
When calling `eth_call` by default account balances will be ignored when executing the call. If the user wants the gas balance to be a consideration in the call a new `strict` param in the call params can be set to true, which will enforce the balance rules. This is the same behavior as is observed in `eth_estimateGas`. Addresses hyperledger#502 Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
@@ -5,6 +5,7 @@ | |||
### 21.2 Breaking Changes | |||
* `--skip-pow-validation-enabled` is now an error with `block import --format JSON`. This is because the JSON format doesn't include the nonce so the proof of work must be calculated. | |||
* `eth_call` will not return a JSON-RPC result if the call fails, but will return an error instead. If it was for a revert the revert reason will be included. | |||
* `eth_call` will not fail for account balance issues by default. An parameter `"strict": true` can be added to the call parameters (with `to` and `from`) to enforce balance checks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/An param/A param
Doc change is to note something like "When using |
When calling `eth_call` by default account balances will be ignored when executing the call. If the user wants the gas balance to be a consideration in the call a new `strict` param in the call params can be set to true, which will enforce the balance rules. This is the same behavior as is observed in `eth_estimateGas`. Addresses hyperledger#502 Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
When calling
eth_call
by default account balances will be ignored whenexecuting the call. If the user wants the gas balance to be a
consideration in the call a new
strict
param in the call params can beset to true, which will enforce the balance rules. This is the same
behavior as is observed in
eth_estimateGas
.Addresses #502
Signed-off-by: Danno Ferrin danno.ferrin@gmail.com
Changelog