Skip to content

Commit

Permalink
fix(cmd): parse withdraw fee using transaction options
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f committed Nov 18, 2024
1 parent fca5564 commit b451b58
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),

Check warning on line 169 in cmd/wallet/tx.go

View check run for this annotation

Codecov / codecov/patch

cmd/wallet/tx.go#L169

Added line #L169 was not covered by tests
wallet.OptionLockTime(uint32(*lockTime)),
wallet.OptionMemo(*memoOpt),
}
Expand Down

0 comments on commit b451b58

Please sign in to comment.