Skip to content

Commit 128f173

Browse files
authored
Use zero instead of intermediate state root (paritytech#198)
1 parent caad994 commit 128f173

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

runtime/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,17 @@ impl fp_rpc::ConvertTransaction<opaque::UncheckedExtrinsic> for TransactionConve
304304

305305
pub struct EthereumFindAuthor<F>(PhantomData<F>);
306306

307+
parameter_types! {
308+
pub const DefaultStateRoot: H256 = H256::zero();
309+
}
310+
307311
impl pallet_ethereum::Config for Runtime {
308312
type Event = Event;
309313
#[cfg(not(feature = "standalone"))]
310314
type FindAuthor = EthereumFindAuthor<PhantomAura>;
311315
#[cfg(feature = "standalone")]
312316
type FindAuthor = EthereumFindAuthor<Aura>;
313-
type StateRoot = pallet_ethereum::IntermediateStateRoot;
317+
type StateRoot = DefaultStateRoot;
314318
}
315319

316320
// 18 decimals

runtime/src/parachain.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ macro_rules! runtime_parachain {
2222
spec_name: create_runtime_str!("moonbase-alphanet"),
2323
impl_name: create_runtime_str!("moonbase-alphanet"),
2424
authoring_version: 3,
25-
spec_version: 9,
26-
impl_version: 2,
25+
spec_version: 10,
26+
impl_version: 1,
2727
apis: RUNTIME_API_VERSIONS,
2828
transaction_version: 2,
2929
};

runtime/src/standalone.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ macro_rules! runtime_standalone {
3131
spec_name: create_runtime_str!("moonbeam-standalone"),
3232
impl_name: create_runtime_str!("moonbeam-standalone"),
3333
authoring_version: 3,
34-
spec_version: 9,
35-
impl_version: 2,
34+
spec_version: 10,
35+
impl_version: 1,
3636
apis: RUNTIME_API_VERSIONS,
3737
transaction_version: 2,
3838
};

0 commit comments

Comments
 (0)