@@ -414,6 +414,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
414
414
"bitcoin::hash_types::Txid" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes" ) ,
415
415
"bitcoin::hash_types::BlockHash" if is_ref => Some ( "*const [u8; 32]" ) ,
416
416
"bitcoin::hash_types::BlockHash" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes" ) ,
417
+ "bitcoin::secp256k1::Message" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes" ) ,
417
418
"ln::channelmanager::PaymentHash" if is_ref => Some ( "*const [u8; 32]" ) ,
418
419
"ln::channelmanager::PaymentHash" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes" ) ,
419
420
"ln::channelmanager::PaymentPreimage" if is_ref => Some ( "*const [u8; 32]" ) ,
@@ -624,6 +625,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
624
625
"bitcoin::hash_types::Txid" if is_ref => Some ( "" ) ,
625
626
"bitcoin::hash_types::BlockHash" if is_ref => Some ( "" ) ,
626
627
"bitcoin::hash_types::BlockHash" => Some ( "crate::c_types::ThirtyTwoBytes { data: " ) ,
628
+ "bitcoin::secp256k1::Message" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes { data: " ) ,
627
629
"ln::channelmanager::PaymentHash" if is_ref => Some ( "&" ) ,
628
630
"ln::channelmanager::PaymentHash" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes { data: " ) ,
629
631
"ln::channelmanager::PaymentPreimage" if is_ref => Some ( "&" ) ,
@@ -687,6 +689,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
687
689
"bitcoin::hash_types::Txid" if is_ref => Some ( ".as_inner()" ) ,
688
690
"bitcoin::hash_types::BlockHash" if is_ref => Some ( ".as_inner()" ) ,
689
691
"bitcoin::hash_types::BlockHash" => Some ( ".into_inner() }" ) ,
692
+ "bitcoin::secp256k1::Message" if !is_ref => Some ( ".as_ref().clone() }" ) ,
690
693
"ln::channelmanager::PaymentHash" if is_ref => Some ( ".0" ) ,
691
694
"ln::channelmanager::PaymentHash" => Some ( ".0 }" ) ,
692
695
"ln::channelmanager::PaymentPreimage" if is_ref => Some ( ".0" ) ,
0 commit comments