-
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
log rawTx when fail to send tx #51
Conversation
Signed-off-by: Daisuke Kanda <[email protected]>
Signed-off-by: Daisuke Kanda <[email protected]>
e6e7108
to
21ec2bc
Compare
@@ -2,7 +2,7 @@ package ethereum | |||
|
|||
const ( | |||
logAttrMsgIndexFrom = "msg_index_from" | |||
logAttrMsgIndexTo = "msg_index_to" |
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.
change info for readers to avoid from confusing to is inclusive or not.
@@ -406,7 +413,7 @@ func (c *Chain) getRevertReasonFromReceipt(ctx context.Context, receipt *client. | |||
|
|||
func (c *Chain) getRevertReasonFromRpcError(err error) (string, []byte, error) { | |||
if de, ok := err.(rpc.DataError); !ok { | |||
return "", nil, fmt.Errorf("failed with unexpected error type: errorType=%T", 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.
output normal log in case of failing to rpc call itself.
iter.cursor = min(len(iter.msgs), iter.cursor + n) | ||
} | ||
|
||
func (iter *CallIter) updateLoggerMessageInfo(logger *log.RelayLogger, from int, count int) { |
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.
Being buildTx more common function, caller of buildTx need to add info of msgs in using buildTx to logger.
This is helper function for 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.
@dai1975 Thank you for the PR. I left some comments.
Signed-off-by: Daisuke Kanda <[email protected]>
5eefac0
to
b1c9fd7
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.
@dai1975 LGTM. Thank you!
log rawTx when fail to send tx