-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support for logging custom errors on tx execution revert in not only real tx execution but also gas estimation #39
Conversation
Signed-off-by: Dongri Jin <[email protected]> Add defaultError Signed-off-by: Dongri Jin <[email protected]> Add test case Signed-off-by: Dongri Jin <[email protected]> Add panic error Signed-off-by: Dongri Jin <[email protected]> Add abi_paths Signed-off-by: Dongri Jin <[email protected]> Fix parse abi files Signed-off-by: Dongri Jin <[email protected]> * Move package Signed-off-by: Dongri Jin <[email protected]> Add GetRevertReason to after DebugTraceTransaction Signed-off-by: Dongri Jin <[email protected]> * Fix erepo create * Fix add error repo Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
f057d35
to
9a63ad9
Compare
…if the corresponding error ABI is unknown Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
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.
@siburu Thanks, LGTM👍
Signed-off-by: Masanori Yoshida <[email protected]>
…ndMsgs` Signed-off-by: Masanori Yoshida <[email protected]>
pkg/relay/ethereum/tx.go
Outdated
@@ -113,7 +114,7 @@ func (c *Chain) GetMsgResult(id core.MsgID) (core.MsgResult, error) { | |||
if receipt.Status == gethtypes.ReceiptStatusSuccessful { | |||
return c.makeMsgResultFromReceipt(&receipt.Receipt, "") | |||
} | |||
revertReason, err := c.getRevertReasonFromReceipt(ctx, receipt) | |||
revertReason, _, err := c.getRevertReasonFromReceipt(ctx, receipt) | |||
if err != nil { | |||
logger.Error("failed to get revert reason", err) |
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.
Should we also contain errorData
in the error log?
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.
🤔 ... sure. I will fix it.
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 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.
ah ... should we also add tx_hash here?
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.
added 99492cd
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
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👍
No description provided.