Skip to content

Commit 456db3c

Browse files
committed
Compilation fixes
1 parent fc64f40 commit 456db3c

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

runtime/robonomics/src/lib.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -925,30 +925,9 @@ impl_runtime_apis! {
925925
}
926926
}
927927

928-
struct CheckInherents;
929-
impl cumulus_pallet_parachain_system::CheckInherents<Block> for CheckInherents {
930-
fn check_inherents(
931-
block: &Block,
932-
relay_state_proof: &cumulus_pallet_parachain_system::RelayChainStateProof,
933-
) -> sp_inherents::CheckInherentsResult {
934-
let relay_chain_slot = relay_state_proof
935-
.read_slot()
936-
.expect("Could not read the relay chain slot from the proof");
937-
let inherent_data =
938-
cumulus_primitives_timestamp::InherentDataProvider::from_relay_chain_slot_and_duration(
939-
relay_chain_slot,
940-
sp_std::time::Duration::from_secs(6),
941-
)
942-
.create_inherent_data()
943-
.expect("Could not create the timestamp inherent data");
944-
inherent_data.check_extrinsics(block)
945-
}
946-
}
947-
948928
cumulus_pallet_parachain_system::register_validate_block! {
949929
Runtime = Runtime,
950930
BlockExecutor = Executive,
951-
CheckInherents = CheckInherents
952931
}
953932

954933
parameter_types! {

0 commit comments

Comments
 (0)