Skip to content

Commit

Permalink
base64 encode permissioned keys public key arg
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy04 committed Dec 23, 2024
1 parent fa7038b commit cb93945
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion protocol/x/accountplus/client/cli/tx.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cli

import (
"encoding/base64"
"fmt"

"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -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)
},
Expand Down

0 comments on commit cb93945

Please sign in to comment.