Skip to content

Commit

Permalink
fix: skip to process failed txn
Browse files Browse the repository at this point in the history
  • Loading branch information
sherpalden committed Jul 12, 2024
1 parent e915b88 commit 5afbebe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions relayer/chains/wasm/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,9 @@ func (ap *WasmProvider) GetBlockInfoList(

blockMessages := map[uint64][]ibcMessage{}
for _, txResult := range txs {
if txResult.TxResult.Code != 0 {
continue // skip failed transaction
}
messages := ibcMessagesFromEvents(
ap.log,
txResult.TxResult.Events,
Expand Down

0 comments on commit 5afbebe

Please sign in to comment.