Skip to content

Commit

Permalink
test: Fix use of hardcoded cosmos... address (#2122)
Browse files Browse the repository at this point in the history
* Fix use of hardcoded cosmos... address

* Hardcode address and adjust comment

* Revert line change

* Revert formatting change
  • Loading branch information
p-offtermatt authored Aug 13, 2024
1 parent 7b481bd commit d332ad5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,9 @@ func (s *CCVTestSuite) TestIBCTransferMiddleware() {
getIBCDenom func(string, string) string
)

// set up an arbitrary address that is not the consumer rewards pool address
notConsumerRewardsPoolAddr := s.providerChain.SenderAccount.GetAddress().String()

testCases := []struct {
name string
setup func(sdk.Context, *providerkeeper.Keeper, icstestingutils.TestBankKeeper)
Expand All @@ -557,7 +560,7 @@ func (s *CCVTestSuite) TestIBCTransferMiddleware() {
{
"IBC Transfer recipient is not the consumer rewards pool address",
func(ctx sdk.Context, keeper *providerkeeper.Keeper, bankKeeper icstestingutils.TestBankKeeper) {
data.Receiver = "cosmos149lw9fktlqfed3zt8ah48r5czmsug5s7kw77u9" // random acct address
data.Receiver = notConsumerRewardsPoolAddr
packet.Data = data.GetBytes()
},
false,
Expand Down

0 comments on commit d332ad5

Please sign in to comment.