mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
replace &Bytes with &[u8] in optimism functions (#5896)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -1112,11 +1112,8 @@ where
|
||||
) -> EthResult<OptimismTxMeta> {
|
||||
let Some(l1_block_info) = l1_block_info else { return Ok(OptimismTxMeta::default()) };
|
||||
|
||||
let envelope_buf: Bytes = {
|
||||
let mut envelope_buf = bytes::BytesMut::new();
|
||||
tx.encode_enveloped(&mut envelope_buf);
|
||||
envelope_buf.freeze().into()
|
||||
};
|
||||
let mut envelope_buf = bytes::BytesMut::new();
|
||||
tx.encode_enveloped(&mut envelope_buf);
|
||||
|
||||
let (l1_fee, l1_data_gas) = if tx.is_deposit() {
|
||||
let inner_l1_fee = l1_block_info
|
||||
|
||||
Reference in New Issue
Block a user