mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 00:57:57 +00:00
Set initialised_block if we called initialise_block (#1767)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user