From 92738c084c3af6321c16fc560c5ddfa6a1362bff Mon Sep 17 00:00:00 2001 From: marbar3778 Date: Mon, 3 Apr 2023 21:40:37 +0200 Subject: [PATCH] distribution tests --- tests/e2e/distribution/suite.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/e2e/distribution/suite.go b/tests/e2e/distribution/suite.go index 00b7884ab879..94e964f43f6a 100644 --- a/tests/e2e/distribution/suite.go +++ b/tests/e2e/distribution/suite.go @@ -12,6 +12,7 @@ import ( "github.com/stretchr/testify/suite" "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/codec/address" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/cosmos/cosmos-sdk/testutil/network" sdk "github.com/cosmos/cosmos-sdk/types" @@ -440,7 +441,7 @@ total: tc := tc s.Run(tc.name, func() { - cmd := cli.GetCmdQueryDelegatorRewards() + cmd := cli.GetCmdQueryDelegatorRewards(address.NewBech32Codec("cosmos")) clientCtx := val.ClientCtx out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args) @@ -724,7 +725,7 @@ func (s *E2ETestSuite) TestNewSetWithdrawAddrCmd() { tc := tc s.Run(tc.name, func() { - cmd := cli.NewSetWithdrawAddrCmd() + cmd := cli.NewSetWithdrawAddrCmd(address.NewBech32Codec("cosmos")) clientCtx := val.ClientCtx out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args)