diff --git a/substrate/Cargo.lock b/substrate/Cargo.lock index 1b95ec606c..b579763b98 100644 --- a/substrate/Cargo.lock +++ b/substrate/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "MacTypes-sys" version = "2.1.0" diff --git a/substrate/core/client/src/call_executor.rs b/substrate/core/client/src/call_executor.rs index af09a340a6..9f13bb58d2 100644 --- a/substrate/core/client/src/call_executor.rs +++ b/substrate/core/client/src/call_executor.rs @@ -237,6 +237,11 @@ where native_call, ).map(|(result, _, _)| result)?; + // If the method is `initialise_block` we need to set the `initialised_block` + if method == "Core_initialise_block" { + *initialised_block = Some(*at); + } + self.backend.destroy_state(state)?; Ok(result) }