-
Notifications
You must be signed in to change notification settings - Fork 309
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 refund to execution result in Go binding #690
Add refund to execution result in Go binding #690
Conversation
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.
Hi @HerbertJordan, thanks for the contribution.
I'd rather change the existing API of Execute()
to return Result
as you proposed. What do you think?
Hi @chfast, thanks for reviewing this PR. If backward compatibility is not an issue, we should indeed update the existing |
8e42f42
to
65da3fc
Compare
65da3fc
to
153f1b0
Compare
153f1b0
to
8b80acb
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #690 +/- ##
=======================================
Coverage 93.49% 93.49%
=======================================
Files 25 25
Lines 3857 3857
Branches 396 396
=======================================
Hits 3606 3606
Misses 139 139
Partials 112 112 |
3073588
to
7641dfe
Compare
7641dfe
to
c221cf2
Compare
This PR modifies the
Execute()
function from the Go bindings to return aResult
struct instead of a list of result values to support the retrieval of the amount of refunded gas. This information is available in evmc.h's evmc_result, but was not exposed in the Go binding so far.