Skip to content

Commit 52276f6

Browse files
committed
mock evm state root
1 parent 32d37c5 commit 52276f6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frame/ethereum/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ use sp_runtime::{
5858
DispatchErrorWithPostInfo, RuntimeDebug, SaturatedConversion,
5959
};
6060
use sp_std::{marker::PhantomData, prelude::*};
61-
6261
pub use ethereum::{
6362
AccessListItem, BlockV2 as Block, LegacyTransactionMessage, Log, ReceiptV3 as Receipt,
6463
TransactionAction, TransactionV2 as Transaction,
@@ -449,7 +448,7 @@ impl<T: Config> Pallet<T> {
449448
H256::default()
450449
},
451450
beneficiary: pallet_evm::Pallet::<T>::find_author(),
452-
state_root: T::StateRoot::get(),
451+
state_root: H256::from_slice(&block_number.encode()),
453452
receipts_root,
454453
logs_bloom,
455454
difficulty: U256::zero(),

0 commit comments

Comments
 (0)