-
Notifications
You must be signed in to change notification settings - Fork 39
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
ssz support for user operation #156
Conversation
} | ||
} | ||
|
||
impl ssz_rs::Serialize for UserOperation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vid201 I am handwriting this because I don't want to introduce another type of conversion. Do you have better ideas? Maybe we should wrap Bytes
, U256
these kinds of types in our crates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I can't think of better solution at the moment. I think this is fine for now.
Should we add some 1 or 2 tests for ssz serialize/deserialize?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We should
} | ||
} | ||
|
||
impl ssz_rs::Serialize for UserOperation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I can't think of better solution at the moment. I think this is fine for now.
Should we add some 1 or 2 tests for ssz serialize/deserialize?
GJ! |
@@ -484,4 +758,44 @@ mod tests { | |||
.into() | |||
); | |||
} | |||
|
|||
#[test] | |||
fn user_operation_ssz() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vid201 add a test case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
@@ -484,4 +758,44 @@ mod tests { | |||
.into() | |||
); | |||
} | |||
|
|||
#[test] | |||
fn user_operation_ssz() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
No description provided.