-
Notifications
You must be signed in to change notification settings - Fork 87
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
Incorrect gas_limit in the constructor #119
Comments
Yes, this should be fixed by #111 but I want to do some testing first before I release this. |
Okay, thank you. Looking forward to the release. I created a quick tutorial on how to use eth.rb to publish at https://chainstack.com/blog , it's only pending the fix and then we'll publish it. Thanks again! |
@akegaviar the intrinsic gas limit calculator works when there isn't a constructor, and can work when their is, but the constructor may have significant gas fees if writing variables etc. I opened another PR #128 which allows you to override the gas limit when calling the deploy functions. Calculating the gas limit of the constructor is doable looking at the opcodes, but that requires additional metadata etc, so I will add this override to the other contract calls as well. |
Please let me know if this issue persists with the latest release 0.5.6! |
Hi, thanks for this gem, I really like it.
That said, the
gas_limit
parameter doesn't seem to work.Example:
result. The gas limit is 57100.
result (different source contract). The gas limit is 56064.
#111 — same issue or related?
Thanks!
The text was updated successfully, but these errors were encountered: