Skip to content

Commit a6bab8f

Browse files
committed
feat(nft-transfer): define ibc router key as const
1 parent 8085f37 commit a6bab8f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

app/keepers/keepers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ func NewAppKeeper(
641641
// fallback (over sorted Keys()) when exact match fails. PortID "nft-transfer"
642642
// has a hyphen so we register under "nft". sorts before "transfer", is a
643643
// substring of "nft-transfer", so the fallback resolves deterministically.
644-
AddRoute("nft", nftTransferStack).
644+
AddRoute(ibcnfttransfertypes.IbcRouterKey, nftTransferStack).
645645
AddRoute(ophosttypes.ModuleName, ophostStack)
646646
appKeepers.IBCKeeper.SetRouter(ibcRouter)
647647

x/ibc/nft-transfer/types/keys.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ const (
2929

3030
// ClassIdPrefix is the prefix used for internal class id representation.
3131
ClassIdPrefix = "ibc"
32+
33+
// IbcRouterKey is the IBC router key string for nft-transfer
34+
IbcRouterKey = "nft"
3235
)
3336

3437
var (

0 commit comments

Comments
 (0)