From: Matt Corallo Date: Mon, 23 Oct 2023 23:36:44 +0000 (+0000) Subject: Correct manual conversion for `ChainHash` X-Git-Tag: v0.0.118.0^2~4 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=f8cb96c59952c9edc2e0d811166fb91e78f3c0d1;p=ldk-c-bindings Correct manual conversion for `ChainHash` --- diff --git a/c-bindings-gen/src/types.rs b/c-bindings-gen/src/types.rs index 1cb7420..3ac40cf 100644 --- a/c-bindings-gen/src/types.rs +++ b/c-bindings-gen/src/types.rs @@ -1534,7 +1534,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> { if is_ref => Some(".as_inner()"), "bitcoin::hash_types::Txid"|"bitcoin::BlockHash"|"bitcoin::hash_types::BlockHash"|"bitcoin_hashes::sha256::Hash" if !is_ref => Some(".into_inner() }"), - "bitcoin::blockdata::constants::ChainHash" if is_ref => Some(".as_bytes() }"), + "bitcoin::blockdata::constants::ChainHash" if is_ref => Some(".as_bytes()"), "bitcoin::blockdata::constants::ChainHash" if !is_ref => Some(".to_bytes() }"), "bitcoin::secp256k1::Message" if !is_ref => Some(".as_ref().clone() }"), "lightning::ln::PaymentHash"|"lightning::ln::PaymentPreimage"|"lightning::ln::PaymentSecret"