From d35531e79ea56b4f2fa97b3c4f4f6eff68ddcc6c Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Mon, 10 Jul 2023 19:41:28 +1000 Subject: [PATCH] fix: remove txn header from getPayloadBodies (#3688) --- crates/rpc/rpc-types/src/eth/engine/payload.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rpc/rpc-types/src/eth/engine/payload.rs b/crates/rpc/rpc-types/src/eth/engine/payload.rs index d60c81b5ae..7b593d8026 100644 --- a/crates/rpc/rpc-types/src/eth/engine/payload.rs +++ b/crates/rpc/rpc-types/src/eth/engine/payload.rs @@ -4,7 +4,7 @@ use reth_primitives::{ Address, Block, Bloom, Bytes, Header, SealedBlock, TransactionSigned, UintTryTo, Withdrawal, H256, H64, U256, U64, }; -use reth_rlp::{Decodable, Encodable}; +use reth_rlp::Decodable; use serde::{ser::SerializeMap, Deserialize, Serialize, Serializer}; /// The execution payload body response that allows for `null` values. @@ -229,7 +229,7 @@ impl From for ExecutionPayloadBody { fn from(value: Block) -> Self { let transactions = value.body.into_iter().map(|tx| { let mut out = Vec::new(); - tx.encode(&mut out); + tx.encode_enveloped(&mut out); out.into() }); ExecutionPayloadBody {