Skip to content

Commit

Permalink
chore: bump alloy-eip7702 and remove Parity re-export (#1842)
Browse files Browse the repository at this point in the history
* chore: remove Parity re-export

* bump eip7702
  • Loading branch information
klkvr authored Nov 4, 2024
1 parent 7d24989 commit 4360ea1
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 12 deletions.
20 changes: 16 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/interpreter/src/opcode/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub enum InstructionTables<'a, H: ?Sized> {
Boxed(BoxedInstructionTable<'a, H>),
}

impl<'a, H: Host + ?Sized> InstructionTables<'a, H> {
impl<H: Host + ?Sized> InstructionTables<'_, H> {
/// Creates a plain instruction table for the given spec. See [`make_instruction_table`].
#[inline]
pub const fn new_plain<SPEC: Spec>() -> Self {
Expand Down
2 changes: 1 addition & 1 deletion crates/precompile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use once_cell::race::OnceBox;
use std::{boxed::Box, vec::Vec};

pub fn calc_linear_cost_u32(len: usize, base: u64, word: u64) -> u64 {
(len as u64 + 32 - 1) / 32 * word + base
(len as u64).div_ceil(32) * word + base
}

#[derive(Clone, Default, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ all = "warn"
[dependencies]
# alloy
alloy-eip2930 = { version = "0.1", default-features = false }
alloy-eip7702 = { version = "0.3", default-features = false, features = [
alloy-eip7702 = { version = "0.4", default-features = false, features = [
"k256",
] }
alloy-primitives = { version = "0.8.8", default-features = false, features = [
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/eip7702/authorization_list.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub use alloy_eip7702::{
Authorization, RecoveredAuthority, RecoveredAuthorization, SignedAuthorization,
};
pub use alloy_primitives::{Parity, Signature};
pub use alloy_primitives::Signature;

use std::{boxed::Box, vec::Vec};

Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/handler/handle_types/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<'a, EXT: 'a, DB: Database + 'a> ExecutionHandler<'a, EXT, DB> {
}
}

impl<'a, EXT, DB: Database> ExecutionHandler<'a, EXT, DB> {
impl<EXT, DB: Database> ExecutionHandler<'_, EXT, DB> {
/// Executes single frame.
#[inline]
pub fn execute_frame(
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/handler/handle_types/post_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<'a, EXT: 'a, DB: Database + 'a> PostExecutionHandler<'a, EXT, DB> {
}
}

impl<'a, EXT, DB: Database> PostExecutionHandler<'a, EXT, DB> {
impl<EXT, DB: Database> PostExecutionHandler<'_, EXT, DB> {
/// Calculate final refund
pub fn refund(&self, context: &mut Context<EXT, DB>, gas: &mut Gas, eip7702_refund: i64) {
(self.refund)(context, gas, eip7702_refund)
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/handler/handle_types/pre_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl<'a, EXT: 'a, DB: Database + 'a> PreExecutionHandler<'a, EXT, DB> {
}
}

impl<'a, EXT, DB: Database> PreExecutionHandler<'a, EXT, DB> {
impl<EXT, DB: Database> PreExecutionHandler<'_, EXT, DB> {
/// Deduct caller to its limit.
pub fn deduct_caller(&self, context: &mut Context<EXT, DB>) -> Result<(), EVMError<DB::Error>> {
(self.deduct_caller)(context)
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/handler/handle_types/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl<'a, EXT: 'a, DB: Database + 'a> ValidationHandler<'a, EXT, DB> {
}
}

impl<'a, EXT, DB: Database> ValidationHandler<'a, EXT, DB> {
impl<EXT, DB: Database> ValidationHandler<'_, EXT, DB> {
/// Validate env.
pub fn env(&self, env: &Env) -> Result<(), EVMError<DB::Error>> {
(self.env)(env)
Expand Down

0 comments on commit 4360ea1

Please sign in to comment.