lncli: strip prefix from pay_req flag

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

No files matched your search

+1 -1
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