mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: restrict payload builder error type (#12423)
This commit is contained in:
@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user