From dab305b25cf7b8ceed10f25764c33f931c0cc33f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 28 Dec 2022 18:27:05 +0000 Subject: [PATCH] [TS] Update tests to 0.0.113 API --- ts/test/tests.mts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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); -- 2.30.2