mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 15:28:02 +00:00
test-runtime: json_patch dep removed (#3062)
We don't need dependency on `json_patch` there is implementation of needed function in `sc_chain_spec` crate. This PR makes this function publicly available and removes the dep.
This commit is contained in:
committed by
GitHub
parent
4ca193f88b
commit
73fd8cd717
Generated
+1
-12
@@ -6756,17 +6756,6 @@ version = "0.12.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd"
|
||||
|
||||
[[package]]
|
||||
name = "json-patch"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1f54898088ccb91df1b492cc80029a6fdf1c48ca0db7c6822a8babad69c94658"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
"thiserror",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "jsonrpsee"
|
||||
version = "0.20.3"
|
||||
@@ -19518,13 +19507,13 @@ dependencies = [
|
||||
"frame-system",
|
||||
"frame-system-rpc-runtime-api",
|
||||
"futures",
|
||||
"json-patch",
|
||||
"log",
|
||||
"pallet-babe",
|
||||
"pallet-balances",
|
||||
"pallet-timestamp",
|
||||
"parity-scale-codec",
|
||||
"sc-block-builder",
|
||||
"sc-chain-spec",
|
||||
"sc-executor",
|
||||
"sc-executor-common",
|
||||
"sc-service",
|
||||
|
||||
@@ -338,6 +338,7 @@ pub use self::{
|
||||
GenesisBlockBuilder,
|
||||
},
|
||||
genesis_config_builder::GenesisConfigBuilderRuntimeCaller,
|
||||
json_patch::merge as json_merge,
|
||||
};
|
||||
pub use sc_chain_spec_derive::{ChainSpecExtension, ChainSpecGroup};
|
||||
|
||||
|
||||
@@ -56,12 +56,12 @@ log = { version = "0.4.17", default-features = false }
|
||||
[dev-dependencies]
|
||||
futures = "0.3.21"
|
||||
sc-block-builder = { path = "../../client/block-builder" }
|
||||
sc-chain-spec = { path = "../../client/chain-spec" }
|
||||
sc-executor = { path = "../../client/executor" }
|
||||
sc-executor-common = { path = "../../client/executor/common" }
|
||||
sp-consensus = { path = "../../primitives/consensus/common" }
|
||||
substrate-test-runtime-client = { path = "client" }
|
||||
sp-tracing = { path = "../../primitives/tracing" }
|
||||
json-patch = { version = "1.0.0", default-features = false }
|
||||
serde = { version = "1.0.195", features = ["alloc", "derive"], default-features = false }
|
||||
serde_json = { version = "1.0.111", default-features = false, features = ["alloc"] }
|
||||
|
||||
|
||||
@@ -1410,7 +1410,7 @@ mod tests {
|
||||
}
|
||||
});
|
||||
|
||||
json_patch::merge(&mut default_config, &patch);
|
||||
sc_chain_spec::json_merge(&mut default_config, patch);
|
||||
|
||||
// Build genesis config using custom json:
|
||||
let mut t = BasicExternalities::new_empty();
|
||||
|
||||
Reference in New Issue
Block a user