mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-14 22:57:06 +00:00
Use array-bytes for All Array/Bytes/Hex Operations (#12190)
* Use `array-bytes` for All Array/Bytes/Hex Operations Signed-off-by: Xavier Lau <xavier@inv.cafe> * Reorder * Self Review * Format * Fix Tests * Bump `array-bytes` * Optimize large test res Signed-off-by: Xavier Lau <xavier@inv.cafe> Co-authored-by: parity-processbot <>
This commit is contained in:
1 parent
e4b6f4a66d
commit
86198c5471
79 files changed
+520
-510
No files matched your search
@@ -99,7 +99,7 @@ fn beefy_protocol_name() {
|
||||
|
||||
// Create protocol name using random genesis hash.
|
||||
let genesis_hash = H256::random();
|
||||
let expected = format!("/{}/beefy/1", hex::encode(genesis_hash));
|
||||
let expected = format!("/{}/beefy/1", array_bytes::bytes2hex("", genesis_hash.as_ref()));
|
||||
let proto_name = beefy_protocol_name::standard_name(&genesis_hash, &chain_spec);
|
||||
assert_eq!(proto_name.to_string(), expected);
|
||||
|
||||
|
||||
Reference in new issue
Block a user