From 8fa97c1e5ead695fc1c480ef11a559d5f447527d Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Thu, 4 Aug 2022 17:01:21 +0800 Subject: [PATCH] Companion of paritytech/substrate#10080 --- frame/dvm/ethereum/src/lib.rs | 2 +- frame/header-mmr/src/mock.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frame/dvm/ethereum/src/lib.rs b/frame/dvm/ethereum/src/lib.rs index a51215e721..f55726ed3e 100644 --- a/frame/dvm/ethereum/src/lib.rs +++ b/frame/dvm/ethereum/src/lib.rs @@ -916,7 +916,7 @@ impl Pallet { BlockHash::::insert(block_number, block.header.hash()); if post_log { - let digest = DigestItem::::Consensus( + let digest = DigestItem::Consensus( FRONTIER_ENGINE_ID, PostLog::Hashes(fp_consensus::Hashes::from_block(block)).encode(), ); diff --git a/frame/header-mmr/src/mock.rs b/frame/header-mmr/src/mock.rs index 33426e4dd4..e831f77ecd 100644 --- a/frame/header-mmr/src/mock.rs +++ b/frame/header-mmr/src/mock.rs @@ -104,7 +104,7 @@ pub fn register_offchain_ext(ext: &mut TestExternalities) { ext.register_extension(OffchainWorkerExt::new(offchain)); } -pub fn header_parent_mmr_log(hash: Hash) -> DigestItem { +pub fn header_parent_mmr_log(hash: Hash) -> DigestItem { let mmr_root_log = MerkleMountainRangeRootLog:: { prefix: LOG_PREFIX, parent_mmr_root: hash };