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

Include contract constructor args when estimating intrinsic gas #111

Merged
merged 1 commit into from
Jun 10, 2022
Merged

Include contract constructor args when estimating intrinsic gas #111

merged 1 commit into from
Jun 10, 2022

Conversation

dansimpson
Copy link
Contributor

I was receiving "intrinsic gas too low errors" while trying to deploy contracts with several constructor arguments. Upon inspection, I noticed that constructor argument data was not included in the intrinsic gas calculation. Including constructor data when computing the fee fixed the problem for me.

Copy link
Owner

@q9f q9f left a comment

Choose a reason for hiding this comment

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

thank you!

@beacoding
Copy link
Contributor

@dansimpson , might want to add this here as well:

https://github.com/withfabricxyz/eth.rb/blob/b8423ebc0124644417aad5b051f6ed181e5684b7/lib/eth/client.rb#L271

data = call_payload(fun, args)

mculp pushed a commit to mculp/eth.rb that referenced this pull request Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants