Skip to content

Commit

Permalink
fix: subaccount from address cli
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpioborn committed Dec 18, 2023
1 parent bfbddfa commit 1a4ff3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/subaccount/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TxCreate() *cobra.Command {
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &types.MsgCreate{
Creator: clientCtx.From,
Creator: clientCtx.GetFromAddress().String(),
Owner: subaccountOwner.String(),
LockedBalances: []types.LockedBalance{
{
Expand Down Expand Up @@ -128,7 +128,7 @@ func TxTopup() *cobra.Command {
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &types.MsgTopUp{
Creator: clientCtx.From,
Creator: clientCtx.GetFromAddress().String(),
Address: subaccountAddress.String(),
LockedBalances: []types.LockedBalance{
{
Expand Down Expand Up @@ -159,7 +159,7 @@ func TxWithdraw() *cobra.Command {
return err
}
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &types.MsgWithdrawUnlockedBalances{
Creator: clientCtx.From,
Creator: clientCtx.GetFromAddress().String(),
})
},
}
Expand Down

0 comments on commit 1a4ff3e

Please sign in to comment.