Skip to content
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

Add gas_buffer #739

Merged
merged 6 commits into from
Sep 6, 2020
Merged

Add gas_buffer #739

merged 6 commits into from
Sep 6, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Add gas_buffer to transactions, a multiplier applied to eth_estimateGas when determining the gas limit for a transaction.

Closes #725

How I did it

  • gas_buffer is a valid kwarg for account.transfer or value in a contract call transaction dictionary.
  • main.gas_buffer() may be used to modify the default setting
  • gas_buffer may be included in the configuration settings

You cannot provide both gas_buffer and gas_limit at the same time, doing so raises a ValueError.

How to verify it

Run the tests. I added some new test cases around the behaviour.

@iamdefinitelyahuman iamdefinitelyahuman merged commit cf8a8ab into master Sep 6, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the feat-gas-buffer branch September 6, 2020 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add gas_buffer for transaction settings
1 participant