mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
Companion for substrate#9732 (#678)
* state-update4 branch * new ref * Update to latest. * update deps * switch to host state version * update * fmt * up * remove trie patch * remove patch * fmt * update * set state_versions in runtimes * state version from storage * state version from storage * seedling compat * restore lock * update lockfile for substrate * update lockfile for polkadot Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -24,7 +24,8 @@ use sp_runtime::traits::Block as BlockT;
|
||||
/// Returns the initial head data for a parachain ID.
|
||||
pub fn initial_head_data(para_id: ParaId) -> HeadData {
|
||||
let spec = Box::new(crate::chain_spec::get_chain_spec(para_id));
|
||||
let block: Block = generate_genesis_block(&(spec as Box<_>)).unwrap();
|
||||
let block: Block =
|
||||
generate_genesis_block(&(spec as Box<_>), sp_runtime::StateVersion::V1).unwrap();
|
||||
let genesis_state = block.header().encode();
|
||||
genesis_state.into()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user