lncli: fix command line argument parsing for sendpayment

This commit fixes a bug that caused the payment hash to be (re)parsed as
an int representing the final cltv delta.
This commit is contained in:
Joost Jager 2019-03-08 10:33:40 +01:00
parent e0886ff1f5
commit 5b6fdbeb6f
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -2121,6 +2121,7 @@ func sendPayment(ctx *cli.Context) error {
rHash, err = hex.DecodeString(ctx.String("payment_hash"))
case args.Present():
rHash, err = hex.DecodeString(args.First())
args = args.Tail()
default:
return fmt.Errorf("payment hash argument missing")
}