From f8cb96c59952c9edc2e0d811166fb91e78f3c0d1 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 23 Oct 2023 23:36:44 +0000 Subject: [PATCH] Correct manual conversion for `ChainHash` --- c-bindings-gen/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.5