From fe806c9ecf6ecfaa8ce77d664110c11948ee5ec0 Mon Sep 17 00:00:00 2001 From: Javad Rajabzadeh Date: Tue, 10 Sep 2024 14:09:05 +0330 Subject: [PATCH] fix(wallet): add memo in confirmation wallet CLI (#1499) --- cmd/wallet/tx.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/wallet/tx.go b/cmd/wallet/tx.go index 17b37fe69..ea8a428f1 100644 --- a/cmd/wallet/tx.go +++ b/cmd/wallet/tx.go @@ -61,6 +61,7 @@ func buildTransferTxCmd(parentCmd *cobra.Command) { cmd.PrintInfoMsgf("To : %s", to) cmd.PrintInfoMsgf("Amount: %s", amt) cmd.PrintInfoMsgf("Fee : %s", trx.Fee()) + cmd.PrintInfoMsgf("Memo : %s", trx.Memo()) signAndPublishTx(wlt, trx, *noConfirmOpt, *passOpt) } @@ -106,6 +107,7 @@ func buildBondTxCmd(parentCmd *cobra.Command) { cmd.PrintInfoMsgf("Validator: %s", to) cmd.PrintInfoMsgf("Stake : %s", amt) cmd.PrintInfoMsgf("Fee : %s", trx.Fee()) + cmd.PrintInfoMsgf("Memo : %s", trx.Memo()) signAndPublishTx(wlt, trx, *noConfirmOpt, *passOpt) } @@ -145,6 +147,7 @@ func buildUnbondTxCmd(parentCmd *cobra.Command) { cmd.PrintInfoMsgf("You are going to sign this \033[1mUnbond\033[0m transition:") cmd.PrintInfoMsgf("Validator: %s", from) cmd.PrintInfoMsgf("Fee : %s", trx.Fee()) + cmd.PrintInfoMsgf("Memo : %s", trx.Memo()) signAndPublishTx(wlt, trx, *noConfirmOpt, *passOpt) } @@ -189,6 +192,7 @@ func buildWithdrawTxCmd(parentCmd *cobra.Command) { cmd.PrintInfoMsgf("Account : %s", to) cmd.PrintInfoMsgf("Amount : %s", amt) cmd.PrintInfoMsgf("Fee : %s", trx.Fee()) + cmd.PrintInfoMsgf("Memo : %s", trx.Memo()) signAndPublishTx(wlt, trx, *noConfirmOpt, *passOpt) }