replace &Bytes with &[u8] in optimism functions (#5896)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Thomas Coratger
2024-02-09 18:24:55 +01:00
committed by GitHub
parent 3ae2611c9c
commit cede8b7dd6
3 changed files with 7 additions and 10 deletions

View File

@@ -170,7 +170,7 @@ pub trait RethL1BlockInfo {
&self,
chain_spec: &ChainSpec,
timestamp: u64,
input: &Bytes,
input: &[u8],
is_deposit: bool,
) -> Result<U256, BlockExecutionError>;
@@ -184,7 +184,7 @@ pub trait RethL1BlockInfo {
&self,
chain_spec: &ChainSpec,
timestamp: u64,
input: &Bytes,
input: &[u8],
) -> Result<U256, BlockExecutionError>;
}
@@ -193,7 +193,7 @@ impl RethL1BlockInfo for L1BlockInfo {
&self,
chain_spec: &ChainSpec,
timestamp: u64,
input: &Bytes,
input: &[u8],
is_deposit: bool,
) -> Result<U256, BlockExecutionError> {
if is_deposit {
@@ -218,7 +218,7 @@ impl RethL1BlockInfo for L1BlockInfo {
&self,
chain_spec: &ChainSpec,
timestamp: u64,
input: &Bytes,
input: &[u8],
) -> Result<U256, BlockExecutionError> {
let spec_id = if chain_spec.is_fork_active_at_timestamp(Hardfork::Regolith, timestamp) {
SpecId::REGOLITH