refactor(groups): remove global bech32 (#15707)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
Marko
2023-04-14 16:25:22 +00:00
committed by GitHub
co-authored by Julien Robert
parent d31157f60a
commit d6762e930d
16 changed files with 163 additions and 80 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ func (s *E2ETestSuite) TestQueryGroupPolicyInfo() {
"group policy not found",
[]string{val.Address.String(), fmt.Sprintf("--%s=json", flags.FlagOutput)},
true,
"group policy: not found",
"not found",
0,
},
{
+3 -2
View File
@@ -12,6 +12,7 @@ import (
"github.com/stretchr/testify/suite"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/codec/address"
"github.com/cosmos/cosmos-sdk/crypto/hd"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
"github.com/cosmos/cosmos-sdk/testutil"
@@ -1309,7 +1310,7 @@ func (s *E2ETestSuite) TestTxUpdateGroupPolicyDecisionPolicy() {
tc := tc
s.Run(tc.name, func() {
cmd := client.MsgUpdateGroupPolicyDecisionPolicyCmd()
cmd := client.MsgUpdateGroupPolicyDecisionPolicyCmd(address.NewBech32Codec("cosmos"))
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args)
if tc.expectErr {
@@ -1608,7 +1609,7 @@ func (s *E2ETestSuite) TestTxSubmitProposal() {
s.commonFlags...,
),
false,
"group policy: not found",
"not found",
&sdk.TxResponse{},
sdkerrors.ErrNotFound.ABCICode(),
},