lncli: strip prefix from pay_req flag

This commit is contained in:
Tugay Emin
2022-11-15 18:13:29 +02:00
parent f277f89e08
commit 3f2079fa39
5 changed files with 47 additions and 3 deletions

View File

@@ -292,7 +292,7 @@ func decodePayReq(ctx *cli.Context) error {
}
resp, err := client.DecodePayReq(ctxc, &lnrpc.PayReqString{
PayReq: payreq,
PayReq: stripPrefix(payreq),
})
if err != nil {
return err