feat: bump alloy (#12215)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Arsenii Kulikov
2024-11-06 18:50:25 +04:00
committed by GitHub
parent 12b0637485
commit 38fdc93a12
52 changed files with 588 additions and 1046 deletions

View File

@ -1,4 +1,5 @@
use super::Header;
use alloy_consensus::Sealed;
use alloy_eips::BlockNumHash;
use alloy_primitives::{keccak256, BlockHash, Sealable};
#[cfg(any(test, feature = "test-utils"))]
@ -132,6 +133,12 @@ impl SealedHeader {
}
}
impl<H> From<SealedHeader<H>> for Sealed<H> {
fn from(value: SealedHeader<H>) -> Self {
Self::new_unchecked(value.header, value.hash)
}
}
#[cfg(any(test, feature = "arbitrary"))]
impl<'a> arbitrary::Arbitrary<'a> for SealedHeader {
fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> {

View File

@ -6,7 +6,7 @@ use reth_codecs::Compact;
use alloy_consensus::Transaction;
use alloy_eips::eip2718::{Decodable2718, Encodable2718};
use alloy_primitives::{keccak256, Address, Signature, TxHash, B256};
use alloy_primitives::{keccak256, Address, PrimitiveSignature as Signature, TxHash, B256};
use revm_primitives::TxEnv;
/// Helper trait that unifies all behaviour required by block to support full node operations.