Skip to content

Commit f8cb96c

Browse files
committed
Correct manual conversion for ChainHash
1 parent ed96ce0 commit f8cb96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-bindings-gen/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
15341534
if is_ref => Some(".as_inner()"),
15351535
"bitcoin::hash_types::Txid"|"bitcoin::BlockHash"|"bitcoin::hash_types::BlockHash"|"bitcoin_hashes::sha256::Hash"
15361536
if !is_ref => Some(".into_inner() }"),
1537-
"bitcoin::blockdata::constants::ChainHash" if is_ref => Some(".as_bytes() }"),
1537+
"bitcoin::blockdata::constants::ChainHash" if is_ref => Some(".as_bytes()"),
15381538
"bitcoin::blockdata::constants::ChainHash" if !is_ref => Some(".to_bytes() }"),
15391539
"bitcoin::secp256k1::Message" if !is_ref => Some(".as_ref().clone() }"),
15401540
"lightning::ln::PaymentHash"|"lightning::ln::PaymentPreimage"|"lightning::ln::PaymentSecret"

0 commit comments

Comments
 (0)