Skip to content

Commit

Permalink
chore(payload): fix withdrawals field pre-shanghai in Ethereum payload (
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez authored Nov 24, 2024
1 parent 21bc75d commit e020eb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/ethereum/payload/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,14 +440,14 @@ where
requests_hash,
};

let withdrawals = chain_spec
.is_shanghai_active_at_timestamp(attributes.timestamp)
.then(|| attributes.withdrawals.clone());

// seal the block
let block = Block {
header,
body: BlockBody {
transactions: executed_txs,
ommers: vec![],
withdrawals: Some(attributes.withdrawals.clone()),
},
body: BlockBody { transactions: executed_txs, ommers: vec![], withdrawals },
};

let sealed_block = Arc::new(block.seal_slow());
Expand Down

0 comments on commit e020eb7

Please sign in to comment.