diff --git a/protocols/Cargo.lock b/protocols/Cargo.lock index fbe5ddceac..ba38358d69 100644 --- a/protocols/Cargo.lock +++ b/protocols/Cargo.lock @@ -716,7 +716,7 @@ dependencies = [ [[package]] name = "serde_sv2" -version = "1.0.0" +version = "1.0.1" dependencies = [ "buffer_sv2", "serde", @@ -744,7 +744,7 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "sv1_api" -version = "1.0.0" +version = "1.0.1" dependencies = [ "binary_sv2", "bitcoin_hashes 0.3.2", diff --git a/protocols/v2/binary-sv2/serde-sv2/Cargo.toml b/protocols/v2/binary-sv2/serde-sv2/Cargo.toml index 5e01eb2d3c..fa313313f3 100644 --- a/protocols/v2/binary-sv2/serde-sv2/Cargo.toml +++ b/protocols/v2/binary-sv2/serde-sv2/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "serde_sv2" -version = "1.0.0" +version = "1.0.1" authors = ["fi3 "] edition = "2018" description = "Serlializer and Deserializer for Stratum V2 data format" diff --git a/protocols/v2/binary-sv2/serde-sv2/src/primitives/sequences/seq0255.rs b/protocols/v2/binary-sv2/serde-sv2/src/primitives/sequences/seq0255.rs index 2f01bce3ce..331edb34ed 100644 --- a/protocols/v2/binary-sv2/serde-sv2/src/primitives/sequences/seq0255.rs +++ b/protocols/v2/binary-sv2/serde-sv2/src/primitives/sequences/seq0255.rs @@ -259,6 +259,15 @@ impl<'a> From> for Seq0255<'a, u32> { } } +impl<'a> From>> for Seq0255<'a, U256<'a>> { + fn from(v: Vec>) -> Self { + Seq0255 { + seq: None, + data: Some(v), + } + } +} + impl<'a> From> for Vec { fn from(v: Seq0255) -> Self { if let Some(inner) = v.data {