mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-01 01:01:01 +00:00
Include the chain specs instead of trying to open them by path (#11625)
This makes it possible to run the tests manually, without them expecting to be run in a special folder etc.
This commit is contained in:
@@ -551,9 +551,9 @@ fn local_chain_spec() -> Box<dyn sc_chain_spec::ChainSpec> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
let chain_spec = GenericChainSpec::<Genesis>::from_json_file(std::path::PathBuf::from(
|
||||
"../chain-spec/res/chain_spec.json",
|
||||
))
|
||||
let chain_spec = GenericChainSpec::<Genesis>::from_json_bytes(
|
||||
&include_bytes!("../../../chain-spec/res/chain_spec.json")[..],
|
||||
)
|
||||
.unwrap();
|
||||
chain_spec.cloned_box()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user