From: Matt Corallo Date: Wed, 28 Dec 2022 18:27:05 +0000 (+0000) Subject: [TS] Update tests to 0.0.113 API X-Git-Tag: v0.0.113.0^2~9 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=dab305b25cf7b8ceed10f25764c33f931c0cc33f;p=ldk-java [TS] Update tests to 0.0.113 API --- diff --git a/ts/test/tests.mts b/ts/test/tests.mts index db0fe326..79713991 100644 --- a/ts/test/tests.mts +++ b/ts/test/tests.mts @@ -413,25 +413,27 @@ tests.push(async () => { assert(pm_a.get_peer_node_ids().length == 1); assert(pm_b.get_peer_node_ids().length == 1); - underlying_om_a.send_custom_onion_message([], ldk.Destination.constructor_node(b.node_id), ldk.CustomOnionMessageContents.new_impl({ + underlying_om_a.send_onion_message([], ldk.Destination.constructor_node(b.node_id), + ldk.OnionMessageContents.constructor_custom(ldk.CustomOnionMessageContents.new_impl({ tlv_type(): bigint { return 4242n; }, write(): Uint8Array { const ret = new Uint8Array(43); for (var i = 0; i < 43; i++) ret[i] = 66; return ret; } - } as ldk.CustomOnionMessageContentsInterface), null); + } as ldk.CustomOnionMessageContentsInterface)), null); pm_a.process_events(); assert(b_handled_msg); - om_b.send_custom_onion_message([], ldk.Destination.constructor_node(a.node_id), ldk.CustomOnionMessageContents.new_impl({ + om_b.send_onion_message([], ldk.Destination.constructor_node(a.node_id), + ldk.OnionMessageContents.constructor_custom(ldk.CustomOnionMessageContents.new_impl({ tlv_type(): bigint { return 4343n; }, write(): Uint8Array { const ret = new Uint8Array(44); for (var i = 0; i < 44; i++) ret[i] = 67; return ret; } - } as ldk.CustomOnionMessageContentsInterface), null); + } as ldk.CustomOnionMessageContentsInterface)), null); pm_b.process_events(); assert(a_handled_msg);