-
Notifications
You must be signed in to change notification settings - Fork 565
EVM Error format #350
EVM Error format #350
Conversation
Codecov Report
@@ Coverage Diff @@
## main #350 +/- ##
==========================================
+ Coverage 51.97% 52.20% +0.23%
==========================================
Files 47 47
Lines 4660 4668 +8
==========================================
+ Hits 2422 2437 +15
+ Misses 2139 2132 -7
Partials 99 99
|
} | ||
|
||
reason, errUnpack := abi.UnpackRevert(result) | ||
err := errors.New("execution reverted") |
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.
There are other types of errors, e.g. out of gas?
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.
hmm I could not find anything special in geth. Is out of gas include in exection reverted?
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.
https://github.com/ethereum/go-ethereum/blob/master/core/vm/errors.go#L31
there are several possible cases for the VmError
. maybe just change it to errors.New(vmError)
here is enough?
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 see, you are right, I have missread the if condition. Fixed
Currently, on transaction revert (with this PR) Ethermint
Ganache
I am not sure how compliant we needs to be. It seems that there is also differences between geth and nethermid |
some lint issues ^^; |
e4492c7
to
baaae15
Compare
861a942
to
3bbfcce
Compare
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.
LGTM, utACK
…350) Solution: - re-order ante handlers, use cached from address
Closes: #247
Description
Return Geth error format for EVM failure
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)