Skip to content

Commit

Permalink
fix(cmd): parse withdraw fee using transaction options (#1602)
Browse files Browse the repository at this point in the history
Co-authored-by: Javad Rajabzadeh <[email protected]>
  • Loading branch information
2 people authored and themantre committed Nov 28, 2024
1 parent 197d300 commit 047be4c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/wallet/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 047be4c

Please sign in to comment.