Skip to content

Commit

Permalink
Merge pull request #52 from initia-labs/fix/continue-on-nft-error
Browse files Browse the repository at this point in the history
fix: don't abort on nft index failure
  • Loading branch information
Vritra4 authored Jul 22, 2024
2 parents a331373 + d6165c8 commit 1f3f16d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
## [Unreleased]

* (cache) Change cache-capacity unit to MiB
* (submodule/move-nft, submodule/wasm-nft) fix: don't abort on nft index failure

## [v0.1.5](https://github.com/initia-labs/kvindexer/releases/tag/v0.1.5) - 2024-07-16

Expand Down
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
2 changes: 1 addition & 1 deletion submodules/wasm-nft/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type CollectionResource struct {
// internal use only: struct from move resource
type NftResource struct {
TokenUri string `json:"token_uri"`
Extention interface{} `json:"extension"`
Extension interface{} `json:"extension"`
}

type ContractInfo struct {
Expand Down

0 comments on commit 1f3f16d

Please sign in to comment.