Skip to content

Commit 59abb7b

Browse files
authored
base64 encode permissioned keys config arg (#2668)
1 parent fa7038b commit 59abb7b

File tree

1 file changed

+6
-1
lines changed
  • protocol/x/accountplus/client/cli

1 file changed

+6
-1
lines changed

protocol/x/accountplus/client/cli/tx.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cli
22

33
import (
4+
"encoding/base64"
45
"fmt"
56

67
"github.com/cosmos/cosmos-sdk/client"
@@ -35,10 +36,14 @@ func CmdAddAuthenticator() *cobra.Command {
3536
if err != nil {
3637
return err
3738
}
39+
config, err := base64.StdEncoding.DecodeString(args[2])
40+
if err != nil {
41+
return err
42+
}
3843
msg := types.MsgAddAuthenticator{
3944
Sender: args[0],
4045
AuthenticatorType: args[1],
41-
Data: []byte(args[2]),
46+
Data: config,
4247
}
4348
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
4449
},

0 commit comments

Comments
 (0)