Skip to content

Commit af7cb8b

Browse files
committed
API Owner test for process_multisig_tx
1 parent d85a451 commit af7cb8b

File tree

17 files changed

+945
-279
lines changed

17 files changed

+945
-279
lines changed

api/src/foreign_rpc.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub trait ForeignRpc {
220220
],
221221
"multisig_path": "m/1018305059/3401844484/447546778/208817231",
222222
"sta": "A1",
223-
"ver": "4:2"
223+
"ver": "5:2"
224224
},
225225
null,
226226
null
@@ -588,9 +588,10 @@ pub fn run_doctest_foreign(
588588

589589
// Spit out slate for input to finalize_tx
590590
println!("LOCKING TX");
591-
api_impl::owner::tx_lock_outputs(&mut **w, (&mask1).as_ref(), &sl).unwrap();
591+
api_impl::owner::tx_lock_outputs(&mut **w, mask1.as_ref(), &sl).unwrap();
592592

593-
sl = api_impl::owner::process_multisig_tx(&mut **w, mask1.as_ref(), &sl).unwrap();
593+
sl =
594+
api_impl::owner::process_multisig_tx(&mut **w, mask1.as_ref(), &sl, false).unwrap();
594595
sl = api_impl::foreign::finalize_tx(&mut **w2, mask2.as_ref(), &sl, false).unwrap();
595596
}
596597

api/src/owner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ where
913913
) -> Result<Slate, Error> {
914914
let mut w_lock = self.wallet_inst.lock();
915915
let w = w_lock.lc_provider()?.wallet_inst()?;
916-
owner::process_multisig_tx(&mut **w, keychain_mask, slate)
917-
}
916+
owner::process_multisig_tx(&mut **w, keychain_mask, slate, self.doctest_mode)
917+
}
918918

919919
/// Initializes an atomic swap transaction. The transaction can either be
920920
/// the main or refund. To create a refund transaction, set `args.late_lock = Some(true)`.

0 commit comments

Comments
 (0)