chore: update some deps to prune duplicated deps (#14515)

* chore: update some deps to prune duplicated deps

- array-bytes: 4.1.0 => 6.1.0
- cid: 0.8.6 => 0.9.0

* fix
This commit is contained in:
Qinxuan Chen
2023-07-06 22:46:44 +08:00
committed by GitHub
parent 9c3ca04781
commit e8e2048b88
47 changed files with 126 additions and 163 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ repository = "https://github.com/paritytech/substrate"
homepage = "https://substrate.io"
[dependencies]
array-bytes = { version = "4.1", optional = true }
array-bytes = { version = "6.1", optional = true }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
log = { version = "0.4.17", default-features = false }
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
@@ -28,7 +28,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives
sp-api = { version = "4.0.0-dev", default-features = false, path = "../../primitives/api" }
[dev-dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
sp-staking = { version = "4.0.0-dev", path = "../../primitives/staking" }
[features]
+3 -3
View File
@@ -164,7 +164,7 @@ fn should_update_authorities() {
// check current authority set
assert_eq!(0, auth_set.id);
assert_eq!(2, auth_set.len);
let want = array_bytes::hex_n_into_unchecked::<H256, 32>(
let want = array_bytes::hex_n_into_unchecked::<_, H256, 32>(
"176e73f1bf656478b728e28dd1a7733c98621b8acf830bff585949763dca7a96",
);
assert_eq!(want, auth_set.root);
@@ -184,7 +184,7 @@ fn should_update_authorities() {
assert_eq!(1, auth_set.id);
// check next auth set
assert_eq!(2, next_auth_set.id);
let want = array_bytes::hex_n_into_unchecked::<H256, 32>(
let want = array_bytes::hex_n_into_unchecked::<_, H256, 32>(
"9c6b2c1b0d0b25a008e6c882cc7b415f309965c72ad2b944ac0931048ca31cd5",
);
assert_eq!(2, next_auth_set.len);
@@ -200,7 +200,7 @@ fn should_update_authorities() {
assert_eq!(2, auth_set.id);
// check next auth set
assert_eq!(3, next_auth_set.id);
let want = array_bytes::hex_n_into_unchecked::<H256, 32>(
let want = array_bytes::hex_n_into_unchecked::<_, H256, 32>(
"9c6b2c1b0d0b25a008e6c882cc7b415f309965c72ad2b944ac0931048ca31cd5",
);
assert_eq!(2, next_auth_set.len);