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

Dynamic gas limit for the deployment/configuration transactions #178

Merged
merged 4 commits into from
May 3, 2019

Conversation

akolotov
Copy link
Collaborator

@akolotov akolotov commented May 3, 2019

The current approach is to use a constant configured in .env file as the gas limit for the deployment/configuration transactions. It leads to situations when the example configuration file needs to be updated every time when we change the contracts significantly. Sometimes we missed this step that's why adopters experiencing the issue with the bridge contracts deployment.

The suggested changes introduce call of eth_estimateGas before sending a transaction. The received value is increased by an extra gas depending on the new DEPLOYMENT_GAS_LIMIT_EXTRA parameter.

@akolotov akolotov requested a review from patitonar May 3, 2019 00:41
@ghost ghost assigned akolotov May 3, 2019
Copy link
Contributor

@patitonar patitonar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! This was definitely needed!

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

Successfully merging this pull request may close these issues.

2 participants