diff --git a/Cargo.toml b/Cargo.toml index dcbb6eb..0020378 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.