diff --git a/x/erc20/genesis_test.go b/x/erc20/genesis_test.go index fa8e800ab..0d95934a7 100644 --- a/x/erc20/genesis_test.go +++ b/x/erc20/genesis_test.go @@ -4,6 +4,7 @@ import ( "testing" "time" + "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/suite" sdk "github.com/cosmos/cosmos-sdk/types" @@ -53,6 +54,10 @@ var ( customERC20, } denomIdxs = []types.TokenPairDenomIndex{ + { + Denom: customERC20.Denom, + TokenPairId: customERC20.GetID(), + }, { Denom: uqstars, // denomIdx must have latest token pair id @@ -61,10 +66,19 @@ var ( }, } erc20AddrIdxs = []types.TokenPairERC20AddressIndex{ + { + Erc20Address: common.HexToAddress(uqstars1.Erc20Address).Bytes(), + TokenPairId: uqstars2.GetID(), + }, { Erc20Address: customERC20.GetERC20Contract().Bytes(), TokenPairId: customERC20.GetID(), }, + + { + Erc20Address: common.HexToAddress(uqstars2.Erc20Address).Bytes(), + TokenPairId: uqstars2.GetID(), + }, } )