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
@@ -139,7 +139,8 @@ where
.state
.builder::<Block>()?
// make sure the state is being build with the parent hash, if it is online.
.overwrite_online_at(parent_hash.to_owned());
.overwrite_online_at(parent_hash.to_owned())
.state_version(shared.state_version);
let builder = if command.overwrite_wasm_code {
log::info!(