From c852e9fb87b42424970f975da34099c16da004c6 Mon Sep 17 00:00:00 2001 From: Masanori Yoshida Date: Wed, 24 Apr 2024 13:14:47 +0900 Subject: [PATCH] fix a bug Signed-off-by: Masanori Yoshida --- pkg/relay/ethereum/tx.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/relay/ethereum/tx.go b/pkg/relay/ethereum/tx.go index b6df99e..1e16bea 100644 --- a/pkg/relay/ethereum/tx.go +++ b/pkg/relay/ethereum/tx.go @@ -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") }