Merge pull request #2746 from joostjager/sendpayment-arg

lncli: fix command line argument parsing for sendpayment
This commit is contained in:
Wilmer Paulino 2019-03-08 11:54:21 -08:00 committed by GitHub
commit 9d443a9e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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")
}