From ae257f5685b07451c836aed10f2ceeb0e69619a4 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 9 Nov 2024 13:51:45 +0100 Subject: [PATCH] chore: restrict payload builder error type (#12423) --- crates/payload/primitives/src/traits.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/payload/primitives/src/traits.rs b/crates/payload/primitives/src/traits.rs index 7ae558b99..a77f516da 100644 --- a/crates/payload/primitives/src/traits.rs +++ b/crates/payload/primitives/src/traits.rs @@ -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; /// Sends a message to the service to start building a new payload for the given payload. ///