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

@ -43,7 +43,11 @@ impl PayloadBuilderAttributes for OptimismPayloadBuilderAttributes {
/// 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: OpPayloadAttributes) -> Result<Self, Self::Error> {
fn try_new(
parent: B256,
attributes: OpPayloadAttributes,
_version: u8,
) -> Result<Self, Self::Error> {
let id = payload_id_optimism(&parent, &attributes);
let transactions = attributes