From: Matt Corallo Date: Thu, 14 Apr 2022 14:43:11 +0000 (+0000) Subject: [TS] Update tests to latest upstream API X-Git-Tag: v0.0.106.0~1^2~6 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=927895dc8dd19aa3797ccfef086601dc23a7fddf;p=ldk-java [TS] Update tests to latest upstream API --- diff --git a/ts/test/tests.mts b/ts/test/tests.mts index 35631d25..59a16ecd 100644 --- a/ts/test/tests.mts +++ b/ts/test/tests.mts @@ -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;