From a7790c867c5e78201e08443f453fffe56920e8ef Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 4 Sep 2023 17:48:32 +0900 Subject: [PATCH] Add comment --- x/collection/keeper/migrations/v2/store.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x/collection/keeper/migrations/v2/store.go b/x/collection/keeper/migrations/v2/store.go index 5847c7a17e..d045c12290 100644 --- a/x/collection/keeper/migrations/v2/store.go +++ b/x/collection/keeper/migrations/v2/store.go @@ -91,6 +91,8 @@ func updateContractFTStatistics(store storetypes.KVStore, contractID string, sup return err } + // In the old chains, classID of fungible tokens starts from zero + // In the new chains, it starts from one, but it does not hurts because amount of zero is not set to the store. for intClassID := uint64(0); intClassID < nextClassIDs.Fungible.Uint64(); intClassID++ { classID := fmt.Sprintf("%08x", intClassID)