From e9320ec90fa04d1ba94edda5045cc5b73a1d71ec Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Sun, 21 Jul 2024 19:01:31 +0900 Subject: [PATCH 1/3] don't abort on nft index failure --- submodules/move-nft/collect.go | 2 +- submodules/wasm-nft/collect.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/move-nft/collect.go b/submodules/move-nft/collect.go index c147104..53a5362 100644 --- a/submodules/move-nft/collect.go +++ b/submodules/move-nft/collect.go @@ -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 diff --git a/submodules/wasm-nft/collect.go b/submodules/wasm-nft/collect.go index 2d3b17e..ed7d2a1 100644 --- a/submodules/wasm-nft/collect.go +++ b/submodules/wasm-nft/collect.go @@ -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 From 32848c9bb2593be5b798734b7c86bf0f2ace0ab8 Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Sun, 21 Jul 2024 19:05:47 +0900 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16fb823..57a22a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 From d6165c840a1e280ee2a4ee96964660952cabc811 Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Mon, 22 Jul 2024 12:13:10 +0900 Subject: [PATCH 3/3] fix typo --- submodules/wasm-nft/types/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/wasm-nft/types/types.go b/submodules/wasm-nft/types/types.go index 55613e1..51981fc 100644 --- a/submodules/wasm-nft/types/types.go +++ b/submodules/wasm-nft/types/types.go @@ -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 {