Skip to content

Commit b289c56

Browse files
committed
test: wallet_abi: add ability to set raw in/out schemas
1 parent 43c5eb1 commit b289c56

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

crates/test/src/wallet_abi/request_builder.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ impl WalletAbiRequestBuilder {
5454
self
5555
}
5656

57+
pub fn raw_input_schema(mut self, schema: InputSchema) -> Self {
58+
self.inputs.push(schema);
59+
self
60+
}
61+
5762
pub fn wallet_input_exact(mut self, id: impl Into<String>, asset_id: AssetId, amount_sat: u64) -> Self {
5863
self.inputs.push(InputSchema {
5964
id: id.into(),
@@ -181,6 +186,11 @@ impl WalletAbiRequestBuilder {
181186
self
182187
}
183188

189+
pub fn raw_output_schema(mut self, schema: OutputSchema) -> Self {
190+
self.outputs.push(schema);
191+
self
192+
}
193+
184194
pub fn lock_time_height(mut self, height: u32) -> Result<Self, TestError> {
185195
self.lock_time = Some(
186196
lwk_wollet::elements::LockTime::from_height(height)

0 commit comments

Comments
 (0)