chore: add version to PayloadBuilderAttributes::try_new (#12137)

This commit is contained in:
0xOsiris
2024-10-28 07:37:36 -07:00
committed by GitHub
parent af5ae5a792
commit 3f4634ccbc
7 changed files with 24 additions and 6 deletions

View File

@ -237,7 +237,11 @@ impl PayloadBuilderAttributes for EthPayloadBuilderAttributes {
/// Creates a new payload builder for the given parent block and the attributes.
///
/// Derives the unique [`PayloadId`] for the given parent and attributes
fn try_new(parent: B256, attributes: PayloadAttributes) -> Result<Self, Infallible> {
fn try_new(
parent: B256,
attributes: PayloadAttributes,
_version: u8,
) -> Result<Self, Infallible> {
Ok(Self::new(parent, attributes))
}