mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-05 21:27:24 +00:00
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:
committed by
GitHub
parent
75a76d967b
commit
9e5b211828
@@ -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())])
|
||||
|
||||
Reference in New Issue
Block a user