chore: use alloy engine rpc type (#6123)

This commit is contained in:
Matthias Seitz
2024-01-19 11:25:05 +01:00
committed by GitHub
parent 8349cb3205
commit 25a7b67da7
21 changed files with 49 additions and 1427 deletions

View File

@ -38,7 +38,7 @@ impl PayloadBuilderAttributes for OptimismPayloadBuilderAttributes {
};
let withdraw = attributes.payload_attributes.withdrawals.map(
|withdrawals: Vec<reth_rpc_types::engine::payload::Withdrawal>| {
|withdrawals: Vec<reth_rpc_types::withdrawal::Withdrawal>| {
withdrawals
.into_iter()
.map(convert_standalone_withdraw_to_withdrawal) // Removed the parentheses here

View File

@ -177,7 +177,7 @@ impl EthPayloadBuilderAttributes {
let id = payload_id(&parent, &attributes);
let withdraw = attributes.withdrawals.map(
|withdrawals: Vec<reth_rpc_types::engine::payload::Withdrawal>| {
|withdrawals: Vec<reth_rpc_types::withdrawal::Withdrawal>| {
withdrawals
.into_iter()
.map(convert_standalone_withdraw_to_withdrawal) // Removed the parentheses here