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

feat(primitives): add some impls #162

Merged
merged 1 commit into from
Jun 30, 2023
Merged

feat(primitives): add some impls #162

merged 1 commit into from
Jun 30, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Jun 30, 2023

Motivation

Encountered while migrating revm to alloy-primitives.

Solution

  • TryFrom slices for FixedBytes and newtype macro, same as core::array::TryFrom...
  • Deref to bytes::Bytes instead of directly to [u8]

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@DaniPopes DaniPopes merged commit ef01172 into main Jun 30, 2023
@DaniPopes DaniPopes deleted the dani/improvements branch June 30, 2023 23:08
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