diff --git a/tests/ef_tests/src/test_doc_cases/ssz_static.rs b/tests/ef_tests/src/test_doc_cases/ssz_static.rs index 8367f4c8e..9d78ddc4a 100644 --- a/tests/ef_tests/src/test_doc_cases/ssz_static.rs +++ b/tests/ef_tests/src/test_doc_cases/ssz_static.rs @@ -28,9 +28,11 @@ impl TestDecode for SszStatic { impl SszStatic { fn value(&self) -> Result { - serde_yaml::from_str(&self.raw_yaml.as_str()).map_err(|e| { + let wrapper: Value = serde_yaml::from_str(&self.raw_yaml.as_str()).map_err(|e| { Error::FailedToParseTest(format!("Unable to parse {} YAML: {:?}", self.type_name, e)) - }) + })?; + + Ok(wrapper.value) } }