From bed21c56484eee5f9a9eef88c031b9251f5b1ece Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Sat, 3 Sep 2022 11:08:30 +0200 Subject: [PATCH] fix e2e tests --- tests/e2e/e2e_setup_test.go | 7 ++++--- tests/e2e/e2e_test.go | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/e2e/e2e_setup_test.go b/tests/e2e/e2e_setup_test.go index 919378a88b..569448a52e 100644 --- a/tests/e2e/e2e_setup_test.go +++ b/tests/e2e/e2e_setup_test.go @@ -34,6 +34,7 @@ import ( rpchttp "github.com/tendermint/tendermint/rpc/client/http" umeeapp "github.com/umee-network/umee/v3/app" + appparams "github.com/umee-network/umee/v3/app/params" leveragetypes "github.com/umee-network/umee/v3/x/leverage/types" ) @@ -49,7 +50,7 @@ const ( var ( stakeAmount, _ = sdk.NewIntFromString("100000000000") - stakeAmountCoin = sdk.NewCoin(umeeapp.BondDenom, stakeAmount) + stakeAmountCoin = sdk.NewCoin(appparams.BondDenom, stakeAmount) ) type IntegrationTestSuite struct { @@ -250,8 +251,8 @@ func (s *IntegrationTestSuite) initGenesis() { s.Require().NoError(cdc.UnmarshalJSON(appGenState[leveragetypes.ModuleName], &leverageGenState)) leverageGenState.Registry = append(leverageGenState.Registry, leveragetypes.Token{ - BaseDenom: umeeapp.BondDenom, - SymbolDenom: umeeapp.DisplayDenom, + BaseDenom: appparams.BondDenom, + SymbolDenom: appparams.DisplayDenom, Exponent: 6, ReserveFactor: sdk.MustNewDecFromStr("0.1"), CollateralWeight: sdk.MustNewDecFromStr("0.05"), diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 42261b0f8a..6da6774acc 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -7,7 +7,8 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - umeeapp "github.com/umee-network/umee/v3/app" + + appparams "github.com/umee-network/umee/v3/app/params" ) func (s *IntegrationTestSuite) TestIBCTokenTransfer() { @@ -115,9 +116,9 @@ func (s *IntegrationTestSuite) TestUmeeTokenTransfers() { s.Run("send_uumee_tokens_to_eth", func() { umeeValIdxSender := 0 orchestratorIdxReceiver := 1 - amount := sdk.NewCoin(umeeapp.BondDenom, math.NewInt(300)) + amount := sdk.NewCoin(appparams.BondDenom, math.NewInt(300)) umeeFee := sdk.NewCoin(photonDenom, math.NewInt(10)) - gravityFee := sdk.NewCoin(umeeapp.BondDenom, math.NewInt(7)) + gravityFee := sdk.NewCoin(appparams.BondDenom, math.NewInt(7)) s.sendFromUmeeToEthCheck(umeeValIdxSender, orchestratorIdxReceiver, umeeERC20Addr, amount, umeeFee, gravityFee) }) @@ -128,6 +129,6 @@ func (s *IntegrationTestSuite) TestUmeeTokenTransfers() { orchestratorIdxSender := 1 amount := uint64(300) - s.sendFromEthToUmeeCheck(orchestratorIdxSender, umeeValIdxReceiver, umeeERC20Addr, umeeapp.BondDenom, amount) + s.sendFromEthToUmeeCheck(orchestratorIdxSender, umeeValIdxReceiver, umeeERC20Addr, appparams.BondDenom, amount) }) }