mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-07 11:32:21 +00:00
Fix ssz_static deserialization
This commit is contained in:
parent
523caf52d6
commit
6096abf071
@ -28,9 +28,11 @@ impl TestDecode for SszStatic {
|
||||
|
||||
impl SszStatic {
|
||||
fn value<T: serde::de::DeserializeOwned>(&self) -> Result<T, Error> {
|
||||
serde_yaml::from_str(&self.raw_yaml.as_str()).map_err(|e| {
|
||||
let wrapper: Value<T> = 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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user