Skip to content

Commit ed7064f

Browse files
committed
fix: export public types from Script
1 parent 22b213c commit ed7064f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bdk-ffi/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bdk-ffi/src/bitcoin.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ impl_into_core_type!(Amount, BdkAmount);
143143
#[derive(Clone, Debug, uniffi::Object)]
144144
pub struct Script(pub BdkScriptBuf);
145145

146+
#[uniffi::export]
146147
impl Script {
147148
/// Interpret an array of bytes as a bitcoin script.
149+
#[uniffi::constructor]
148150
pub fn new(raw_output_script: Vec<u8>) -> Self {
149151
let script: BdkScriptBuf = raw_output_script.into();
150152
Script(script)

0 commit comments

Comments
 (0)