@@ -4737,7 +4737,7 @@ def test_fetchinvoice_disconnected_reply(node_factory, bitcoind):
47374737
47384738 # l2 is already connected to l3, so it can fetch. It specifies a reply
47394739 # path of l1->l2. l3 knows it can simply route reply to l1 via l2.
4740- l2 .rpc .fetchinvoice ( offer = offer ['bolt12' ], dev_reply_path = [l1 .info ['id' ], l2 .info ['id' ]])
4740+ l2 .rpc .call ( 'fetchinvoice' , { ' offer' : offer ['bolt12' ], ' dev_reply_path' : [l1 .info ['id' ], l2 .info ['id' ]]} )
47414741 assert l3 .rpc .listpeers (l1 .info ['id' ]) == {'peers' : []}
47424742
47434743
@@ -5709,7 +5709,7 @@ def test_blinded_reply_path_scid(node_factory):
57095709
57105710 chan = only_one (l1 .rpc .listpeerchannels ()['channels' ])
57115711 scidd = "{}/{}" .format (chan ['short_channel_id' ], chan ['direction' ])
5712- inv = l1 .rpc .fetchinvoice ( offer = offer ['bolt12' ], dev_path_use_scidd = scidd )['invoice' ]
5712+ inv = l1 .rpc .call ( 'fetchinvoice' , { ' offer' : offer ['bolt12' ], ' dev_path_use_scidd' : scidd } )['invoice' ]
57135713
57145714 l1 .rpc .pay (inv )
57155715
@@ -5740,9 +5740,10 @@ def test_offer_paths(node_factory, bitcoind):
57405740
57415741 chan = only_one (l1 .rpc .listpeerchannels ()['channels' ])
57425742 scidd = "{}/{}" .format (chan ['short_channel_id' ], chan ['direction' ])
5743- offer = l2 .rpc .offer (amount = '100sat' , description = 'test_offer_paths' ,
5744- dev_paths = [[scidd , l2 .info ['id' ]],
5745- [l3 .info ['id' ], l2 .info ['id' ]]])
5743+ offer = l2 .rpc .call ('offer' , {'amount' : '100sat' ,
5744+ 'description' : 'test_offer_paths' ,
5745+ 'dev_paths' : [[scidd , l2 .info ['id' ]],
5746+ [l3 .info ['id' ], l2 .info ['id' ]]]})
57465747
57475748 paths = l1 .rpc .decode (offer ['bolt12' ])['offer_paths' ]
57485749 assert len (paths ) == 2
0 commit comments