Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Aug 30, 2024
1 parent 1393653 commit 99ce7cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/interchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 99ce7cf

Please sign in to comment.