diff --git a/crates/rpc-types-engine/src/payload.rs b/crates/rpc-types-engine/src/payload.rs index ba33c8dd51a..1d35a261594 100644 --- a/crates/rpc-types-engine/src/payload.rs +++ b/crates/rpc-types-engine/src/payload.rs @@ -862,6 +862,12 @@ impl std::error::Error for PayloadError { } } +impl From for PayloadError { + fn from(value: alloy_rlp::Error) -> Self { + Self::Decode(value) + } +} + impl PayloadError { /// Returns `true` if the error is caused by a block hash mismatch. #[inline]