chore: restrict payload builder error type (#12423)

This commit is contained in:
Matthias Seitz
2024-11-09 13:51:45 +01:00
committed by GitHub
parent a299f501ce
commit ae257f5685

View File

@ -1,4 +1,4 @@
use crate::{PayloadEvents, PayloadKind, PayloadTypes};
use crate::{PayloadBuilderError, PayloadEvents, PayloadKind, PayloadTypes};
use alloy_eips::{eip4895::Withdrawal, eip7685::Requests};
use alloy_primitives::{Address, B256, U256};
use alloy_rpc_types_engine::{PayloadAttributes as EthPayloadAttributes, PayloadId};
@ -12,7 +12,7 @@ pub trait PayloadBuilder: Send + Unpin {
/// The Payload type for the builder.
type PayloadType: PayloadTypes;
/// The error type returned by the builder.
type Error;
type Error: Into<PayloadBuilderError>;
/// Sends a message to the service to start building a new payload for the given payload.
///