try-runtime - support all state versions (#12089)

* Add argument

* Apply

* More verbose parsing

* fmt

* fmt again

* Invalid state version

* reuse parsing

* type mismatch
This commit is contained in:
Piotr Mikołajczyk
2022-08-27 06:56:24 +02:00
committed by GitHub
parent 75a76d967b
commit 9e5b211828
6 changed files with 25 additions and 8 deletions
@@ -102,11 +102,13 @@ where
// create an ext at the state of this block, whatever is the first subscription event.
if maybe_state_ext.is_none() {
let builder = Builder::<Block>::new().mode(Mode::Online(OnlineConfig {
transport: command.uri.clone().into(),
at: Some(*header.parent_hash()),
..Default::default()
}));
let builder = Builder::<Block>::new()
.mode(Mode::Online(OnlineConfig {
transport: command.uri.clone().into(),
at: Some(*header.parent_hash()),
..Default::default()
}))
.state_version(shared.state_version);
let new_ext = builder
.inject_hashed_key_value(&[(code_key.clone(), code.clone())])