-
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
Improve logging at SendMsgs and GetMsgResult #44
Conversation
Signed-off-by: Masanori Yoshida <[email protected]>
b967b70
to
5152347
Compare
pkg/relay/ethereum/tx.go
Outdated
if err2 != nil { | ||
logger.Error("failed to get revert reason", err2, "msg_index", i) | ||
var revertReason, rawErrorData string | ||
if reason, data, err := c.getRevertReasonFromEstimateGas(err); err != nil { |
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 We should include raw error data in the log even if the `ErrorRepository's parser function returns an error.
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.
…able Signed-off-by: Masanori Yoshida <[email protected]>
pkg/relay/ethereum/tx.go
Outdated
txGasLimit = c.Config().MaxGasLimit | ||
} | ||
opts.GasLimit = txGasLimit | ||
opts.NoSend = false | ||
tx, err = c.SendTx(opts, msg, skipUpdateClientCommitment) | ||
if bz, err := tx.MarshalBinary(); err != nil { |
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 If the tx
is nil(and err !=nil) at line 96, doest it cause a nil reference error?
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.
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]>
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.