Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing impl for Seq0255 on binary_sv2/serde-sv2 #1085

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions protocols/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protocols/v2/binary-sv2/serde-sv2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serde_sv2"
version = "1.0.0"
version = "1.0.1"
authors = ["fi3 <[email protected]>"]
edition = "2018"
description = "Serlializer and Deserializer for Stratum V2 data format"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,15 @@ impl<'a> From<Vec<u32>> for Seq0255<'a, u32> {
}
}

impl<'a> From<Vec<U256<'a>>> for Seq0255<'a, U256<'a>> {
fn from(v: Vec<U256<'a>>) -> Self {
Seq0255 {
plebhash marked this conversation as resolved.
Show resolved Hide resolved
seq: None,
data: Some(v),
}
}
}

impl<'a> From<Seq0255<'a, u32>> for Vec<u32> {
fn from(v: Seq0255<u32>) -> Self {
if let Some(inner) = v.data {
Expand Down
Loading