Skip to content

Commit

Permalink
fix: add missing conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Sep 13, 2024
1 parent 4545172 commit 9a556c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/rpc-types-engine/src/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,12 @@ impl std::error::Error for PayloadError {
}
}

impl From<alloy_rlp::Error> 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]
Expand Down

0 comments on commit 9a556c3

Please sign in to comment.