Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Sep 3, 2022
1 parent 195332a commit bed21c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions tests/e2e/e2e_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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 {
Expand Down Expand Up @@ -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"),
Expand Down
9 changes: 5 additions & 4 deletions tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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)
})
Expand All @@ -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)
})
}

0 comments on commit bed21c5

Please sign in to comment.