-
Notifications
You must be signed in to change notification settings - Fork 599
[Feature] introduce ExecutionPayloadVX::try_into_block_with_encoded #2485
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
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
| 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:
alloy/crates/rpc-types-engine/src/payload.rs
Lines 324 to 330 in e6dcaaf
| 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Type
Projects
Status
Done