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 for transaction settings #725

Closed
iamdefinitelyahuman opened this issue Aug 19, 2020 · 0 comments · Fixed by #739
Closed

Add gas_buffer for transaction settings #725

iamdefinitelyahuman opened this issue Aug 19, 2020 · 0 comments · Fixed by #739
Labels
enhancement New feature or request

Comments

@iamdefinitelyahuman
Copy link
Member

Overview

Add a gas_buffer kwarg to the transaction settings dictionary.

Specification

tx = MyContract.foo({'gas_buffer': 8000})

The effect here is that gas_limit is set to eth_estimateGas + gas_buffer.

If both gas_buffer and gas_limit are given, raise an exception.

Dependencies

None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant