Skip to content

Commit 429c8ec

Browse files
authored
Add WASM getters to TransactionUnspentOutput (#341)
Fixes #338
1 parent 8999325 commit 429c8ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

chain/wasm/src/builders/tx_builder.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ impl TransactionUnspentOutput {
4040
)
4141
.into()
4242
}
43+
44+
pub fn input(&self) -> TransactionInput {
45+
self.0.input.clone().into()
46+
}
47+
48+
pub fn output(&self) -> TransactionOutput {
49+
self.0.output.clone().into()
50+
}
4351
}
4452

4553
#[wasm_bindgen]

0 commit comments

Comments
 (0)