From b451b5876f77f0a9d29b91001d36579a203def0c Mon Sep 17 00:00:00 2001 From: Mostafa Date: Mon, 18 Nov 2024 20:54:38 +0800 Subject: [PATCH] fix(cmd): parse withdraw fee using transaction options --- cmd/wallet/tx.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/wallet/tx.go b/cmd/wallet/tx.go index e2b426811..ca429be2a 100644 --- a/cmd/wallet/tx.go +++ b/cmd/wallet/tx.go @@ -162,14 +162,11 @@ func buildWithdrawTxCmd(parentCmd *cobra.Command) { amt, err := amount.FromString(args[2]) cmd.FatalErrorCheck(err) - fee, err := amount.FromString(*feeOpt) - cmd.FatalErrorCheck(err) - wlt, err := openWallet() cmd.FatalErrorCheck(err) opts := []wallet.TxOption{ - wallet.OptionFee(fee), + wallet.OptionFeeFromString(*feeOpt), wallet.OptionLockTime(uint32(*lockTime)), wallet.OptionMemo(*memoOpt), }