mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 16:21:02 +00:00
Set initialised_block if we called initialise_block (#1767)
This commit is contained in:
Generated
+2
@@ -1,3 +1,5 @@
|
|||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "MacTypes-sys"
|
name = "MacTypes-sys"
|
||||||
version = "2.1.0"
|
version = "2.1.0"
|
||||||
|
|||||||
@@ -237,6 +237,11 @@ where
|
|||||||
native_call,
|
native_call,
|
||||||
).map(|(result, _, _)| result)?;
|
).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)?;
|
self.backend.destroy_state(state)?;
|
||||||
Ok(result)
|
Ok(result)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user