chore: allocate for encoded txs (#10193)

This commit is contained in:
Matthias Seitz
2024-08-08 00:05:07 +02:00
committed by GitHub
parent 9082c19f31
commit bd2882e135

View File

@ -112,7 +112,7 @@ where
{
let l1_block_info = self.block_info.l1_block_info.read().clone();
let mut encoded = Vec::new();
let mut encoded = Vec::with_capacity(valid_tx.transaction().encoded_length());
valid_tx.transaction().clone().into().encode_enveloped(&mut encoded);
let cost_addition = match l1_block_info.l1_tx_data_fee(