From 59abb7bd6322f56a3d004f4e58f22ecf0859fad0 Mon Sep 17 00:00:00 2001 From: jayy04 <103467857+jayy04@users.noreply.github.com> Date: Mon, 23 Dec 2024 11:41:22 -0500 Subject: [PATCH] base64 encode permissioned keys config arg (#2668) --- protocol/x/accountplus/client/cli/tx.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/protocol/x/accountplus/client/cli/tx.go b/protocol/x/accountplus/client/cli/tx.go index a4c11f6338..04cecb6b78 100644 --- a/protocol/x/accountplus/client/cli/tx.go +++ b/protocol/x/accountplus/client/cli/tx.go @@ -1,6 +1,7 @@ package cli import ( + "encoding/base64" "fmt" "github.com/cosmos/cosmos-sdk/client" @@ -35,10 +36,14 @@ func CmdAddAuthenticator() *cobra.Command { if err != nil { return err } + config, err := base64.StdEncoding.DecodeString(args[2]) + if err != nil { + return err + } msg := types.MsgAddAuthenticator{ Sender: args[0], AuthenticatorType: args[1], - Data: []byte(args[2]), + Data: config, } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) },