File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -433,6 +433,12 @@ func payInvoice(ctx *cli.Context) error {
433
433
var assetID asset.ID
434
434
copy (assetID [:], assetIDBytes )
435
435
436
+ rfqPeerKey , err := hex .DecodeString (ctx .String (rfqPeerPubKeyFlag .Name ))
437
+ if err != nil {
438
+ return fmt .Errorf ("unable to decode RFQ peer public key: " +
439
+ "%w" , err )
440
+ }
441
+
436
442
tapdConn , cleanup , err := connectTapdClient (ctx )
437
443
if err != nil {
438
444
return fmt .Errorf ("error creating tapd connection: %w" , err )
@@ -457,6 +463,7 @@ func payInvoice(ctx *cli.Context) error {
457
463
stream , err := tchrpcClient .SendPayment (
458
464
ctx , & tchrpc.SendPaymentRequest {
459
465
AssetId : assetIDBytes ,
466
+ PeerPubkey : rfqPeerKey ,
460
467
PaymentRequest : req ,
461
468
},
462
469
)
You can’t perform that action at this time.
0 commit comments