Skip to content

Commit

Permalink
fix wasm-pair nft pair collecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Vritra4 committed Apr 30, 2024
1 parent 26b4aa6 commit baee144
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions submodules/move-pair/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ func (sm PairSubmodule) collectIBCFungibleTokens(ctx context.Context) error {
}
err = sm.fungiblePairsMap.Set(ctx, trace.IBCDenom(), trace.BaseDenom)
if err != nil {
sm.Logger(ctx).Warn("failed to set fungible pair", "ibcDenom", trace.IBCDenom(), "baseDenom", trace.BaseDenom, "error", err)
return err
}
sm.Logger(ctx).Info("fungible pair added", "ibcDenom", trace.IBCDenom(), "baseDenom", trace.BaseDenom)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion submodules/move-pair/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/initia-labs/kvindexer/submodules/move_pair
module github.com/initia-labs/kvindexer/submodules/move-pair

go 1.22

Expand Down
2 changes: 2 additions & 0 deletions submodules/wasm-pair/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ func (sm PairSubmodule) collectIBCFungibleTokens(ctx context.Context) error {
}
err = sm.fungiblePairsMap.Set(ctx, trace.IBCDenom(), trace.BaseDenom)
if err != nil {
sm.Logger(ctx).Warn("failed to set fungible pair", "ibcDenom", trace.IBCDenom(), "baseDenom", trace.BaseDenom, "error", err)
return err
}
sm.Logger(ctx).Info("fungible pair added", "ibcDenom", trace.IBCDenom(), "baseDenom", trace.BaseDenom)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion submodules/wasm-pair/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/initia-labs/kvindexer/submodules/wasm_pair
module github.com/initia-labs/kvindexer/submodules/wasm-pair

go 1.22

Expand Down
6 changes: 3 additions & 3 deletions submodules/wasm-pair/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ type NftClassData struct {
}

type PacketData struct {
ClassData string `json:"class_data"`
ClassId string `json:"class_id"`
ClassUri string `json:"class_uri"`
ClassData string `json:"classData"`
ClassId string `json:"classId"`
ClassUri string `json:"classUri"`
Receiver sdk.AccAddress `json:"receiver"`
Sender sdk.AccAddress `json:"sender"`
//TokenData []string `json:"tokenData"`
Expand Down

0 comments on commit baee144

Please sign in to comment.