Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
chore: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsong0 committed Jul 30, 2024
1 parent 440306a commit a9bba11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/erc20/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func InitGenesis(
}

// set indexes
// multiple contracts at the same denom can exist,
// but only one which is in indexes are valid.
// multiple token pairs should not be registered with the same denom,
// but if this happens, only the one in the index is valid.
for _, idx := range data.DenomIndexes {
id := idx.GetTokenPairId()
k.SetTokenPairIdByDenom(ctx, idx.Denom, id)
Expand Down
2 changes: 2 additions & 0 deletions x/erc20/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (

var (
uqstars = "utestdenom"
// The following test codes are to prove that multiple token pairs should not be registered
// with the same denom, but if this happens, only the one in the index is valid.
// uqstars1 and uqstars2 have same denom
// uqstars1 is deployed first.
uqstars1 = types.TokenPair{
Expand Down

0 comments on commit a9bba11

Please sign in to comment.