fix: clone vault in closure
@@ -139,7 +139,7 @@ fn test_report_vault_succeeds_with_p2sh_segwit_transaction() {
136, 135, 54, 52, 174, 36, 163, 201, 182, 121, 44, 199, 226, 160, 132, 236, 121, 239, 104, 190,
]));
ext::vault_registry::get_active_vault_from_id::<Test>
- .mock_safe(move |_| MockResult::Return(Ok(init_zero_vault(vault, Some(btc_address)))));
+ .mock_safe(move |_| MockResult::Return(Ok(init_zero_vault(vault.clone(), Some(btc_address)))));
ext::btc_relay::parse_merkle_proof::<Test>.mock_safe(|_| MockResult::Return(Ok(dummy_merkle_proof())));
ext::btc_relay::verify_transaction_inclusion::<Test>.mock_safe(move |_, _| MockResult::Return(Ok(())));
ext::vault_registry::liquidate_theft_vault::<Test>.mock_safe(|_, _| MockResult::Return(Ok(())));
