Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fixup mock runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Sep 28, 2021
1 parent e4c01f1 commit 6d716d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions node/core/runtime-api/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ use polkadot_node_subsystem_test_helpers as test_helpers;
use polkadot_primitives::v1::{
AuthorityDiscoveryId, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo,
Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption,
PersistedValidationData, SessionIndex, SessionInfo, ValidationCode, ValidationCodeHash,
ValidatorId, ValidatorIndex,
PersistedValidationData, ScrapedImportDisputesAndBackingVotes, SessionIndex, SessionInfo,
ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex,
};
use sp_core::testing::TaskExecutor;
use std::{
Expand Down Expand Up @@ -149,6 +149,10 @@ sp_api::mock_impl_runtime_apis! {
) -> Option<ValidationCode> {
self.validation_code_by_hash.get(&hash).map(|c| c.clone())
}

fn imported_on_chain_disputes(&self) -> Option<ScrapedImportDisputesAndBackingVotes> {
None
}
}

impl BabeApi<Block> for MockRuntimeApi {
Expand Down

0 comments on commit 6d716d7

Please sign in to comment.