Set initialised_block if we called initialise_block (#1767)

This commit is contained in:
Bastian Köcher
2019-02-12 14:52:00 +01:00
committed by GitHub
parent 90a837d4b8
commit 1f05a47cdb
2 changed files with 7 additions and 0 deletions
@@ -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)
}