-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix(libevm/legacy): PrecompiledStatefulContract
gas and remaining gas handling
#114
Conversation
…PrecompiledStatefulContract`
67cc308
to
c130fa0
Compare
508a58d
to
5d62635
Compare
5d62635
to
fe5c0bd
Compare
fe5c0bd
to
6a8fb2e
Compare
Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Signed-off-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Signed-off-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Signed-off-by: Quentin McGaw <quentin.mcgaw@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this LGTM.
I think it is best to have some form of testing that ensures changes to libevm (esp in core/vm) do not break coreth, as in the past the UTs have shown to not be sufficient to catch all cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One necessary change before merging, please, but otherwise LGTM
Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Signed-off-by: Quentin McGaw <quentin.mcgaw@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the change of gas accounting to align with reality. Suggested a field name to go with it.
Why this should be merged
Following refactor in #73 and a quick-fix on #104 this adds 2 fixes to
PrecompiledStatefulContract
How this works
How this was tested
New test and
vm.PrecompileEnvironment
stub