diff --git a/src/blockdata/script.rs b/src/blockdata/script.rs index a1dedb63..7f83bc9d 100644 --- a/src/blockdata/script.rs +++ b/src/blockdata/script.rs @@ -1042,6 +1042,13 @@ impl<'de> serde::Deserialize<'de> for Script { { Ok(Script::from(v.to_vec())) } + + fn visit_byte_buf(self, v: Vec) -> Result + where + E: serde::de::Error, + { + Ok(Script::from(v)) + } } deserializer.deserialize_bytes(BytesVisitor) }