]> git.bitcoin.ninja Git - ldk-java/commitdiff
[TS] Update tests to latest upstream API
authorMatt Corallo <git@bluematt.me>
Thu, 14 Apr 2022 14:43:11 +0000 (14:43 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Apr 2022 01:48:01 +0000 (01:48 +0000)
ts/test/tests.mts

index 35631d25392f68b95bc170efeb7f9678059307a0..59a16ecd4858ba6c6f007444f775b18d484b8819 100644 (file)
@@ -145,8 +145,8 @@ tests.push(async () => {
        const chan_man_a: ldk.ChannelManager = peer_a[0] as ldk.ChannelManager;
        const chan_man_b: ldk.ChannelManager = peer_b[0] as ldk.ChannelManager;
 
-       chan_man_a.as_ChannelMessageHandler().peer_connected(chan_man_b.get_our_node_id(), ldk.Init.constructor_new(ldk.InitFeatures.constructor_known()));
-       chan_man_b.as_ChannelMessageHandler().peer_connected(chan_man_a.get_our_node_id(), ldk.Init.constructor_new(ldk.InitFeatures.constructor_known()));
+       chan_man_a.as_ChannelMessageHandler().peer_connected(chan_man_b.get_our_node_id(), ldk.Init.constructor_new(ldk.InitFeatures.constructor_known(), ldk.Option_NetAddressZ.constructor_none()));
+       chan_man_b.as_ChannelMessageHandler().peer_connected(chan_man_a.get_our_node_id(), ldk.Init.constructor_new(ldk.InitFeatures.constructor_known(), ldk.Option_NetAddressZ.constructor_none()));
 
        const chan_create_err = chan_man_a.create_channel(chan_man_b.get_our_node_id(), BigInt(0), BigInt(400), BigInt(0), ldk.UserConfig.constructor_default());
        if (chan_create_err.is_ok()) return false;