From a1dc3508095a94847fac4fec16c8b3f61d4ff2c7 Mon Sep 17 00:00:00 2001 From: Vera Abramova Date: Fri, 9 Feb 2024 21:40:26 +0200 Subject: [PATCH] chore: bump external-memory-tools --- Cargo.toml | 2 +- src/lib.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4853ad3..d47a936 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ exclude = ["/for_tests", "/.github"] base58 = {version = "0.2.0"} bitvec = {version = "1.0.1", default-features = false, features = ["alloc"]} blake2 = {version = "0.10.6", default-features = false} -external-memory-tools = {version = "0.1.0", default-features = false} +external-memory-tools = {version = "0.1.1", default-features = false} frame-metadata = {version = "16.0.0", default-features = false, features = ["current", "decode"]} hex = {version = "0.4.3", default-features = false, features = ["alloc"]} num-bigint = {version = "0.4.3", default-features = false} diff --git a/src/lib.rs b/src/lib.rs index f410bf1..65539ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -605,7 +605,9 @@ where /// Extensions are cut to ensure the call decoding never gets outside the /// call data. pub fn data_no_extensions(&self) -> B { - self.data.limit_length(self.extensions_start()) + self.data + .limit_length(self.extensions_start()) + .expect("checked extensions start to be within limits when generating `MarkedData`") } /// Start positions for call data.