Component
rpc
Describe the feature you would like
In addition to the try_into_block functions
|
pub fn try_into_block<T: Decodable2718>(self) -> Result<Block<T>, PayloadError> { |
we would like the same for Block<WithEnconded<T> which keeps the buffer around:
|
let mut buf = tx.as_ref(); |
|
|
|
let tx = T::decode_2718(&mut buf).map_err(alloy_rlp::Error::from)?; |
|
|
|
if !buf.is_empty() { |
|
return Err(alloy_rlp::Error::UnexpectedLength); |
|
} |
this ideally utilizes much of the already existing code
Additional context
No response
Component
rpc
Describe the feature you would like
In addition to the try_into_block functions
alloy/crates/rpc-types-engine/src/payload.rs
Line 311 in e6dcaaf
we would like the same for
Block<WithEnconded<T>which keeps the buffer around:alloy/crates/rpc-types-engine/src/payload.rs
Lines 324 to 330 in e6dcaaf
this ideally utilizes much of the already existing code
Additional context
No response