mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 18:11:10 +00:00
[Deps] Bump scale-info to match cumulus and polkadot (#13873)
* [Deps] Bump scale-info to match cumulus and polkadot * fix Cargo.lock * fix identity * more fixes * fix * fixes * more fixes
This commit is contained in:
@@ -21,7 +21,7 @@ impl-trait-for-tuples = "0.2.2"
|
||||
log = { version = "0.4.17", default-features = false }
|
||||
paste = "1.0"
|
||||
rand = { version = "0.8.5", optional = true }
|
||||
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
|
||||
serde = { version = "1.0.136", features = ["derive"], optional = true }
|
||||
sp-application-crypto = { version = "7.0.0", default-features = false, path = "../application-crypto" }
|
||||
sp-arithmetic = { version = "6.0.0", default-features = false, path = "../arithmetic" }
|
||||
|
||||
@@ -453,8 +453,8 @@ mod tests {
|
||||
#[test]
|
||||
fn digest_item_type_info() {
|
||||
let type_info = DigestItem::type_info();
|
||||
let variants = if let scale_info::TypeDef::Variant(variant) = type_info.type_def() {
|
||||
variant.variants()
|
||||
let variants = if let scale_info::TypeDef::Variant(variant) = type_info.type_def {
|
||||
variant.variants
|
||||
} else {
|
||||
panic!("Should be a TypeDef::TypeDefVariant")
|
||||
};
|
||||
@@ -475,10 +475,10 @@ mod tests {
|
||||
let encoded = digest_item.encode();
|
||||
let variant = variants
|
||||
.iter()
|
||||
.find(|v| v.name() == &variant_name)
|
||||
.find(|v| v.name == variant_name)
|
||||
.expect(&format!("Variant {} not found", variant_name));
|
||||
|
||||
assert_eq!(encoded[0], variant.index())
|
||||
assert_eq!(encoded[0], variant.index)
|
||||
};
|
||||
|
||||
check(DigestItemType::Other);
|
||||
|
||||
Reference in New Issue
Block a user