Added mocking for get_secure_id
@@ -20,6 +20,9 @@ fn request_issue(
ext::security::ensure_parachain_status_running::<Test>
.mock_safe(|| MockResult::Return(Ok(())));
+ ext::security::get_secure_id::<Test>
+ .mock_safe(|_| MockResult::Return(get_dummy_request_id()));
+
ext::vault_registry::increase_to_be_issued_tokens::<Test>
.mock_safe(|_, _| MockResult::Return(Ok(H160::from_slice(&[0; 20]))));
@@ -36,6 +39,9 @@ fn request_issue_ok(
ext::security::ensure_parachain_status_running::<Test>
.mock_safe(|| MockResult::Return(Ok(())));
+ ext::security::get_secure_id::<Test>
+ .mock_safe(|_| MockResult::Return(get_dummy_request_id()));
+
ext::vault_registry::increase_to_be_issued_tokens::<Test>
.mock_safe(|_, _| MockResult::Return(Ok(H160::from_slice(&[0; 20]))));
@@ -82,6 +88,10 @@ fn init_zero_vault<T: Trait>(id: T::AccountId) -> Vault<T::AccountId, T::BlockNu
vault
}
+fn get_dummy_request_id() -> H256 {
+ return H256::zero();
+}
+
#[test]
fn test_request_issue_banned_fails() {
run_test(|| {
