[TS] Update tests to new upstream API changes in 0.0.108
authorMatt Corallo <git@bluematt.me>
Tue, 28 Jun 2022 21:56:53 +0000 (21:56 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 29 Jun 2022 19:08:50 +0000 (19:08 +0000)
ts/test/tests.mts

index 59a16ecd4858ba6c6f007444f775b18d484b8819..734ab66d3b12baf879a119905b0918c0b42f6e75 100644 (file)
@@ -186,7 +186,7 @@ tests.push(async () => {
        funding_tx[witness_pos] = 1; funding_tx[witness_pos + 1] = 1; funding_tx[witness_pos + 2] = 0xff; // one witness element of size 1 with contents 0xff
        funding_tx[witness_pos + 3] = 0; funding_tx[witness_pos + 4] = 0; funding_tx[witness_pos + 5] = 0; funding_tx[witness_pos + 6] = 0; // lock time 0
 
-       const funding_res = chan_man_a.funding_transaction_generated(events[0].temporary_channel_id, funding_tx);
+       const funding_res = chan_man_a.funding_transaction_generated(events[0].temporary_channel_id, events[0].counterparty_node_id, funding_tx);
        if (!(funding_res instanceof ldk.Result_NoneAPIErrorZ_OK)) return false;
 
        if (!exchange_messages(chan_man_a, chan_man_b)) return false;