Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
Signed-off-by: Masanori Yoshida <[email protected]>
  • Loading branch information
siburu committed Apr 24, 2024
1 parent d371625 commit c852e9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/relay/ethereum/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ func (c *Chain) getRevertReasonFromReceipt(ctx context.Context, receipt *client.
} else if len(callFrame.Output) == 0 {
return "", fmt.Errorf("execution reverted without error data")
}
errorData = callFrame.Output
} else {
return "", fmt.Errorf("no way to get revert reason")
}
Expand Down

0 comments on commit c852e9f

Please sign in to comment.