@@ -413,25 +413,27 @@ tests.push(async () => {
413413 assert ( pm_a . get_peer_node_ids ( ) . length == 1 ) ;
414414 assert ( pm_b . get_peer_node_ids ( ) . length == 1 ) ;
415415
416- underlying_om_a . send_custom_onion_message ( [ ] , ldk . Destination . constructor_node ( b . node_id ) , ldk . CustomOnionMessageContents . new_impl ( {
416+ underlying_om_a . send_onion_message ( [ ] , ldk . Destination . constructor_node ( b . node_id ) ,
417+ ldk . OnionMessageContents . constructor_custom ( ldk . CustomOnionMessageContents . new_impl ( {
417418 tlv_type ( ) : bigint { return 4242n ; } ,
418419 write ( ) : Uint8Array {
419420 const ret = new Uint8Array ( 43 ) ;
420421 for ( var i = 0 ; i < 43 ; i ++ ) ret [ i ] = 66 ;
421422 return ret ;
422423 }
423- } as ldk . CustomOnionMessageContentsInterface ) , null ) ;
424+ } as ldk . CustomOnionMessageContentsInterface ) ) , null ) ;
424425 pm_a . process_events ( ) ;
425426 assert ( b_handled_msg ) ;
426427
427- om_b . send_custom_onion_message ( [ ] , ldk . Destination . constructor_node ( a . node_id ) , ldk . CustomOnionMessageContents . new_impl ( {
428+ om_b . send_onion_message ( [ ] , ldk . Destination . constructor_node ( a . node_id ) ,
429+ ldk . OnionMessageContents . constructor_custom ( ldk . CustomOnionMessageContents . new_impl ( {
428430 tlv_type ( ) : bigint { return 4343n ; } ,
429431 write ( ) : Uint8Array {
430432 const ret = new Uint8Array ( 44 ) ;
431433 for ( var i = 0 ; i < 44 ; i ++ ) ret [ i ] = 67 ;
432434 return ret ;
433435 }
434- } as ldk . CustomOnionMessageContentsInterface ) , null ) ;
436+ } as ldk . CustomOnionMessageContentsInterface ) ) , null ) ;
435437 pm_b . process_events ( ) ;
436438 assert ( a_handled_msg ) ;
437439
0 commit comments