]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Update manual c-bindings types for new bindings module structure
authorMatt Corallo <git@bluematt.me>
Mon, 12 Apr 2021 21:31:44 +0000 (17:31 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 15 Apr 2021 22:01:27 +0000 (18:01 -0400)
lightning-c-bindings/src/c_types/mod.rs

index 57b6dcd463c8c994282a120acd60ebca441a21a1..2748734cf6b7cfd25b0d8ddeb8e515bdd4e63a31 100644 (file)
@@ -160,8 +160,8 @@ impl Drop for Transaction {
 /// Frees the data buffer, if data_is_owned is set and datalen > 0.
 pub extern "C" fn Transaction_free(_res: Transaction) { }
 
-pub(crate) fn bitcoin_to_C_outpoint(outpoint: ::bitcoin::blockdata::transaction::OutPoint) -> crate::chain::transaction::OutPoint {
-       crate::chain::transaction::OutPoint_new(ThirtyTwoBytes { data: outpoint.txid.into_inner() }, outpoint.vout.try_into().unwrap())
+pub(crate) fn bitcoin_to_C_outpoint(outpoint: ::bitcoin::blockdata::transaction::OutPoint) -> crate::lightning::chain::transaction::OutPoint {
+       crate::lightning::chain::transaction::OutPoint_new(ThirtyTwoBytes { data: outpoint.txid.into_inner() }, outpoint.vout.try_into().unwrap())
 }
 
 #[repr(C)]