remove sp-serializer (#2574)

* remove sp-serializer

* improve

* update lockfile for {"polkadot", "substrate"}

* update lockfile for {"substrate", "polkadot"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
yjh
2023-05-15 19:09:10 +08:00
committed by GitHub
parent 89b7b06d2a
commit 45bae90eb1
3 changed files with 429 additions and 392 deletions
Generated
+427 -390
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -18,6 +18,7 @@ futures = "0.3.28"
hex-literal = "0.4.1"
log = "0.4.17"
serde = { version = "1.0.162", features = ["derive"] }
serde_json = "1.0.96"
# Local
rococo-parachain-runtime = { path = "../parachains/runtimes/testing/rococo-parachain" }
@@ -64,7 +65,6 @@ sp-offchain = { git = "https://github.com/paritytech/substrate", branch = "maste
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-consensus-aura = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-sysinfo = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-serializer = { git = "https://github.com/paritytech/substrate", branch = "master" }
substrate-prometheus-endpoint = { git = "https://github.com/paritytech/substrate", branch = "master" }
try-runtime-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
sc-transaction-pool-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
+1 -1
View File
@@ -77,7 +77,7 @@ impl RuntimeResolver for PathBuf {
let file = std::fs::File::open(self).expect("Failed to open file");
let reader = std::io::BufReader::new(file);
let chain_spec: EmptyChainSpecWithId = sp_serializer::from_reader(reader)
let chain_spec: EmptyChainSpecWithId = serde_json::from_reader(reader)
.expect("Failed to read 'json' file with ChainSpec configuration");
runtime(&chain_spec.id)