Skip to content

Commit

Permalink
don't abort on nft index failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Vritra4 committed Jul 21, 2024
1 parent a331373 commit e9320ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion submodules/move-nft/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (sm MoveNftSubmodule) processEvents(ctx context.Context, events []types.Eve
}
if err := fn(ctx, event); err != nil {
sm.Logger(ctx).Error("failed to handle nft-related event", "error", err.Error())
return cosmoserr.Wrap(err, "failed to handle nft-related event")
// don't return here because we want to process all events
}
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion submodules/wasm-nft/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (sm WasmNFTSubmodule) processEvents(ctx context.Context, events []types.Eve

if err := fn(ctx, event); err != nil {
sm.Logger(ctx).Error("failed to handle nft-related event", "error", err.Error())
return cosmoserr.Wrap(err, "failed to handle nft-related event")
// don't return here because we want to process all events
}
}
return nil
Expand Down

0 comments on commit e9320ec

Please sign in to comment.