From 6ea2451645c75b7f7e47efb552fccfc577de5a4b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 13 Sep 2024 17:19:37 +0200 Subject: [PATCH] fix: add missing conversion (#1287) --- crates/rpc-types-engine/src/payload.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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]