Skip to content

Commit

Permalink
fix: use 2718 encoding (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell authored Jun 11, 2024
1 parent 518c8d8 commit 93ee899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/primitives/src/payload.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Contains the execution payload type.
use alloc::vec::Vec;
use alloy_eips::eip2718::Decodable2718;
use alloy_eips::eip2718::{Decodable2718, Encodable2718};
use alloy_primitives::{Address, Bloom, Bytes, B256, U256};
use anyhow::Result;
use op_alloy_consensus::{OpTxEnvelope, OpTxType};
Expand Down Expand Up @@ -245,7 +245,7 @@ impl From<OpBlock> for L2ExecutionPayloadEnvelope {
.into_iter()
.map(|tx| {
let mut buf = Vec::with_capacity(tx.length());
tx.encode(&mut buf);
tx.encode_2718(&mut buf);
buf.into()
})
.collect(),
Expand Down

0 comments on commit 93ee899

Please sign in to comment.