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
@@ -26,7 +26,7 @@ strum = { version = "0.24.1", features = ["derive"], default-features = false }
lazy_static = "1.4.0"
[dev-dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
sp-keystore = { version = "0.27.0", path = "../../keystore" }
[features]
+1 -1
View File
@@ -43,7 +43,7 @@ bitflags = "1.3"
paste = "1.0.7"
# full crypto
array-bytes = { version = "4.1", optional = true }
array-bytes = { version = "6.1", optional = true }
ed25519-zebra = { version = "3.1.0", default-features = false, optional = true }
blake2 = { version = "0.10.4", default-features = false, optional = true }
libsecp256k1 = { version = "0.7", default-features = false, features = ["static-context"], optional = true }
+1 -1
View File
@@ -332,7 +332,7 @@ impl<T> Serialize for Signature<T> {
where
S: Serializer,
{
serializer.serialize_str(&array_bytes::bytes2hex("", self.as_ref()))
serializer.serialize_str(&array_bytes::bytes2hex("", self))
}
}
+2 -2
View File
@@ -220,7 +220,7 @@ impl Serialize for Signature {
where
S: Serializer,
{
serializer.serialize_str(&array_bytes::bytes2hex("", self.as_ref()))
serializer.serialize_str(&array_bytes::bytes2hex("", self))
}
}
@@ -552,7 +552,7 @@ mod test {
let derived = pair.derive(path.into_iter(), None).ok().unwrap();
assert_eq!(
derived.0.seed(),
array_bytes::hex2array_unchecked::<32>(
array_bytes::hex2array_unchecked::<_, 32>(
"b8eefc4937200a8382d00050e050ced2d4ab72cc2ef1b061477afb51564fdd61"
)
);
+2 -2
View File
@@ -234,7 +234,7 @@ impl Serialize for Signature {
where
S: Serializer,
{
serializer.serialize_str(&array_bytes::bytes2hex("", self.as_ref()))
serializer.serialize_str(&array_bytes::bytes2hex("", self))
}
}
@@ -499,7 +499,7 @@ mod test {
let derived = pair.derive(path.into_iter(), None).ok().unwrap().0;
assert_eq!(
derived.seed(),
array_bytes::hex2array_unchecked::<32>(
array_bytes::hex2array_unchecked::<_, 32>(
"ede3354e133f9c8e337ddd6ee5415ed4b4ffe5fc7d21e933f4930a3730e5b21c"
)
);
+1 -1
View File
@@ -240,7 +240,7 @@ impl Serialize for Signature {
where
S: Serializer,
{
serializer.serialize_str(&array_bytes::bytes2hex("", self.as_ref()))
serializer.serialize_str(&array_bytes::bytes2hex("", self))
}
}
@@ -25,7 +25,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../std" }
thiserror = "1.0"
[dev-dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
[features]
default = ["std"]
@@ -30,7 +30,7 @@ sp-trie = { version = "22.0.0", default-features = false, path = "../trie" }
trie-db = { version = "0.27.1", default-features = false }
[dev-dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
pretty_assertions = "1.2.1"
rand = "0.8.5"
sp-runtime = { version = "24.0.0", path = "../runtime" }
@@ -391,7 +391,7 @@ mod tests {
ext.set_storage(b"doe".to_vec(), b"reindeer".to_vec());
ext.set_storage(b"dog".to_vec(), b"puppy".to_vec());
ext.set_storage(b"dogglesworth".to_vec(), b"cat".to_vec());
let root = array_bytes::hex_n_into_unchecked::<H256, 32>(
let root = array_bytes::hex_n_into_unchecked::<_, H256, 32>(
"ed4d8c799d996add422395a6abd7545491d40bd838d738afafa1b8a4de625489",
);
assert_eq!(H256::from_slice(ext.storage_root(Default::default()).as_slice()), root);
+1 -1
View File
@@ -36,7 +36,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../std" }
schnellru = { version = "0.2.1", optional = true }
[dev-dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
criterion = "0.4.0"
trie-bench = "0.37.0"
trie-standardmap = "0.16.0"