Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Sep 4, 2023
1 parent beb10ce commit a7790c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/collection/keeper/migrations/v2/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a7790c8

Please sign in to comment.