Skip to content

Commit

Permalink
Merge branch 'main' into rapha/reduce-ibc-usage
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 authored Jun 6, 2024
2 parents b4e2e1b + 7683992 commit 33b1745
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 33b1745

Please sign in to comment.