diff --git a/examples/interchain.go b/examples/interchain.go index 48f4b63..1df814e 100644 --- a/examples/interchain.go +++ b/examples/interchain.go @@ -322,9 +322,6 @@ func TestMessageDelivery( common.Address{}, message, ) - if err != nil { - return err - } if err == evm.ErrFailedReceiptStatus { txHash := tx.Hash().String() trace, err := evm.GetTrace(chain1RPC, txHash) @@ -335,6 +332,9 @@ func TestMessageDelivery( } return fmt.Errorf("source receipt status for tx %s is not ReceiptStatusSuccessful", txHash) } + if err != nil { + return err + } // get from chain1 event logs the message id event, err := evm.GetEventFromLogs(receipt.Logs, icm.ParseSendCrossChainMessage)