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

ssz support for user operation #156

Merged
merged 2 commits into from
Jun 29, 2023
Merged

Conversation

zsluedem
Copy link
Collaborator

No description provided.

}
}

impl ssz_rs::Serialize for UserOperation {
Copy link
Collaborator Author

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?

Copy link
Member

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?

Copy link
Collaborator Author

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 {
Copy link
Member

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?

@Vid201
Copy link
Member

Vid201 commented Jun 28, 2023

GJ!

@zsluedem zsluedem marked this pull request as ready for review June 29, 2023 07:42
@@ -484,4 +758,44 @@ mod tests {
.into()
);
}

#[test]
fn user_operation_ssz() {
Copy link
Collaborator Author

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

Copy link
Member

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() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@zsluedem zsluedem merged commit 6332658 into silius-rs:main Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants