From d3f0ce3086d349275434c66fd6ab44d6a6ca0e07 Mon Sep 17 00:00:00 2001 From: Unique-Divine Date: Wed, 27 Dec 2023 23:47:35 -0600 Subject: [PATCH] test(perp-cli_test): Grab module acc addr programatically --- x/perp/v2/client/cli/cli_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/x/perp/v2/client/cli/cli_test.go b/x/perp/v2/client/cli/cli_test.go index 23ae45155..47a6a8b4f 100644 --- a/x/perp/v2/client/cli/cli_test.go +++ b/x/perp/v2/client/cli/cli_test.go @@ -8,6 +8,7 @@ import ( abcitypes "github.com/cometbft/cometbft/abci/types" sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" bankcli "github.com/cosmos/cosmos-sdk/x/bank/client/cli" "github.com/stretchr/testify/suite" @@ -714,12 +715,14 @@ func (s *IntegrationTestSuite) TestDonateToEcosystemFund() { s.NoError(s.network.WaitForNextBlock()) resp := new(sdk.Coin) - moduleAccountAddrPerpEF := "nibi1trh2mamq64u4g042zfeevvjk4cukrthvppfnc7" + + moduleAccPerpFund := authtypes.NewModuleAddress( + types.PerpFundModuleAccount).String() s.NoError( testutilcli.ExecQuery( s.network.Validators[0].ClientCtx, bankcli.GetBalancesCmd(), - []string{moduleAccountAddrPerpEF, "--denom", types.TestingCollateralDenomNUSD}, + []string{moduleAccPerpFund, "--denom", types.TestingCollateralDenomNUSD}, resp, ), )