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

bug: alloy-consensus should use alloy_primitives::Sealable #1072

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

zerosnacks
Copy link
Member

@zerosnacks zerosnacks commented Jul 18, 2024

Motivation

Closes #1071

Solution

  • Re-exports Sealed and Sealable in the alloy-consensus crate to keep the export available

Breaking changes:

  • hash -> hash_slow (inherits the change in naming from alloy-primitives)
  • alloy-core does not implement the alias hash of seal, this can be added if desired in alloy-core
    /// Get the hash (alias for [`Self::seal`]).
    #[inline(always)]
    pub const fn hash(&self) -> B256 {
        self.seal()
    }

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@mattsse mattsse merged commit 067cc46 into main Jul 18, 2024
22 checks passed
@mattsse mattsse deleted the zerosnacks/consolidate-sealed branch July 18, 2024 16:03
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
…-rs#1072)

* use Sealable and Sealed from alloy-primitives

* fix path in docs
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.

[Bug] alloy-consensus should use alloy_primitives::Sealable
2 participants