Skip to content

Commit

Permalink
Add WASM getters to TransactionUnspentOutput (#341)
Browse files Browse the repository at this point in the history
Fixes #338
  • Loading branch information
rooooooooob committed Jul 23, 2024
1 parent de5e500 commit 057d0fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chain/wasm/src/builders/tx_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ impl TransactionUnspentOutput {
)
.into()
}

pub fn input(&self) -> TransactionInput {
self.0.input.clone().into()
}

pub fn output(&self) -> TransactionOutput {
self.0.output.clone().into()
}
}

#[wasm_bindgen]
Expand Down

0 comments on commit 057d0fd

Please sign in to comment.