Skip to content

Commit

Permalink
test: multiple coins final tests (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler authored Jun 6, 2024
1 parent 64930b6 commit 7683992
Show file tree
Hide file tree
Showing 5 changed files with 1,529 additions and 464 deletions.
10 changes: 10 additions & 0 deletions testutil/integration/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

func (suite *KeeperTestSuite) GetCoinsFromCommunityPool() sdk.Coins {
pool, err := suite.App().DistributionKeeper.FeePool.Get(suite.Ctx())
if err != nil {
return sdk.NewCoins()
}

coins, _ := pool.CommunityPool.TruncateDecimal()
return coins
}

func (suite *KeeperTestSuite) GetBalanceFromAddress(address string) uint64 {
accAddress, err := sdk.AccAddressFromBech32(address)
if err != nil {
Expand Down
Loading

0 comments on commit 7683992

Please sign in to comment.