Skip to content

Commit

Permalink
fix: more alloy migration
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Apr 29, 2024
1 parent 77563a4 commit 06e40ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/l1/chain_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl InnerWatcher {
let l1_fee_overhead = alloy_primitives::U256::from_be_slice(&input[196..228]);
let l1_fee_scalar = alloy_primitives::U256::from_be_slice(&input[228..260]);
let mut gas_lim_slice: &mut [u8] = &mut [0; 32];

Check warning on line 204 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / check

variable does not need to be mutable

Check warning on line 204 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / build

variable does not need to be mutable

Check warning on line 204 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / test

variable does not need to be mutable

Check failure on line 204 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / clippy

variable does not need to be mutable
block.gas_limit.to_big_endian(&mut gas_lim_slice);
block.gas_limit.to_big_endian(gas_lim_slice);
let gas_limit = alloy_primitives::U256::from_be_slice(gas_lim_slice);

SystemConfig {
Expand Down Expand Up @@ -325,15 +325,15 @@ impl InnerWatcher {
SystemConfigUpdate::Fees(overhead, scalar) => {
let mut overhead_slice: &mut [u8] = &mut [0; 0];

Check warning on line 326 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / check

variable does not need to be mutable

Check warning on line 326 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / build

variable does not need to be mutable

Check warning on line 326 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / test

variable does not need to be mutable

Check failure on line 326 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / clippy

variable does not need to be mutable
let mut scalar_slice: &mut [u8] = &mut [0; 0];

Check warning on line 327 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / check

variable does not need to be mutable

Check warning on line 327 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / build

variable does not need to be mutable

Check warning on line 327 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / test

variable does not need to be mutable

Check failure on line 327 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / clippy

variable does not need to be mutable
overhead.to_big_endian(&mut overhead_slice);
scalar.to_big_endian(&mut scalar_slice);
overhead.to_big_endian(overhead_slice);
scalar.to_big_endian(scalar_slice);
config.l1_fee_overhead =
alloy_primitives::U256::from_be_slice(overhead_slice);
config.l1_fee_scalar = alloy_primitives::U256::from_be_slice(scalar_slice);
}
SystemConfigUpdate::Gas(gas) => {
let mut gas_slice: &mut [u8] = &mut [0; 0];

Check warning on line 335 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / check

variable does not need to be mutable

Check warning on line 335 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / build

variable does not need to be mutable

Check warning on line 335 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / test

variable does not need to be mutable

Check failure on line 335 in src/l1/chain_watcher.rs

View workflow job for this annotation

GitHub Actions / clippy

variable does not need to be mutable
gas.to_big_endian(&mut gas_slice);
gas.to_big_endian(gas_slice);
config.gas_limit = alloy_primitives::U256::from_be_slice(gas_slice);
}
SystemConfigUpdate::UnsafeBlockSigner(addr) => {
Expand Down

0 comments on commit 06e40ea

Please sign in to comment.