Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't abort on nft index failure #52

Merged
merged 3 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading