mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 03:01:07 +00:00
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:
@@ -9,7 +9,7 @@ description = "BEEFY Client gadget for substrate"
|
||||
homepage = "https://substrate.io"
|
||||
|
||||
[dependencies]
|
||||
array-bytes = "4.1"
|
||||
array-bytes = "6.1"
|
||||
async-channel = "1.8.0"
|
||||
async-trait = "0.1.57"
|
||||
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
|
||||
|
||||
@@ -117,7 +117,7 @@ mod tests {
|
||||
use beefy_protocol_name::{gossip_protocol_name, justifications_protocol_name};
|
||||
// Create protocol name using random genesis hash.
|
||||
let genesis_hash = H256::random();
|
||||
let genesis_hex = array_bytes::bytes2hex("", genesis_hash.as_ref());
|
||||
let genesis_hex = array_bytes::bytes2hex("", genesis_hash);
|
||||
|
||||
let expected_gossip_name = format!("/{}/beefy/2", genesis_hex);
|
||||
let gossip_proto_name = gossip_protocol_name(&genesis_hash, None);
|
||||
|
||||
@@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
ahash = "0.8.2"
|
||||
array-bytes = "4.1"
|
||||
array-bytes = "6.1"
|
||||
async-trait = "0.1.57"
|
||||
dyn-clone = "1.0"
|
||||
finality-grandpa = { version = "0.16.2", features = ["derive-codec"] }
|
||||
|
||||
@@ -669,7 +669,7 @@ fn grandpa_protocol_name() {
|
||||
|
||||
// Create protocol name using random genesis hash.
|
||||
let genesis_hash = sp_core::H256::random();
|
||||
let expected = format!("/{}/grandpa/1", array_bytes::bytes2hex("", genesis_hash.as_ref()));
|
||||
let expected = format!("/{}/grandpa/1", array_bytes::bytes2hex("", genesis_hash));
|
||||
let proto_name = grandpa_protocol_name::standard_name(&genesis_hash, &chain_spec);
|
||||
assert_eq!(proto_name.to_string(), expected);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user