Skip to content

[Feature] introduce ExecutionPayloadVX::try_into_block_with_encoded #2485

Open
@mattsse

Description

@mattsse

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions