Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit d3f0ce3
Author: Unique-Divine <realuniquedivine@gmail.com>
Date:   Wed Dec 27 23:47:35 2023 -0600

    test(perp-cli_test): Grab module acc addr programatically

commit e43672a
Author: Unique-Divine <realuniquedivine@gmail.com>
Date:   Wed Dec 27 23:27:28 2023 -0600

    test assertiong

commit 0090d2f
Author: Unique-Divine <realuniquedivine@gmail.com>
Date:   Wed Dec 27 23:17:30 2023 -0600

    linter

commit 5121341
Merge: 596a840 68bddeb
Author: Unique-Divine <realuniquedivine@gmail.com>
Date:   Wed Dec 27 23:12:10 2023 -0600

    Merge branch 'main' into realu/sg-perp

commit 596a840
Author: Unique-Divine <realuniquedivine@gmail.com>
Date:   Wed Dec 27 23:10:15 2023 -0600

    changelog

commit 240dffe
Author: Unique-Divine <realuniquedivine@gmail.com>
Date:   Wed Dec 27 23:07:46 2023 -0600

    feat(perp): MsgDonateToPerpFund
  • Loading branch information
Unique-Divine committed Dec 29, 2023
1 parent e8effc2 commit b72b992
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions x/perp/v2/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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,
),
)
Expand Down

0 comments on commit b72b992

Please sign in to comment.