Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing committed Jan 20, 2025
1 parent df410cc commit 97e760f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 0 additions & 2 deletions crates/precompile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ p256 = { version = "0.13.2", optional = true, default-features = false, features
cfg-if = { version = "1.0", default-features = false }

# Optionally use openvm intrinsics
openvm = { workspace = true, optional = true }
openvm-ecc-guest = { workspace = true, optional = true }
openvm-keccak256-guest = { workspace = true, optional = true }
openvm-sha256-guest = { workspace = true, optional = true }
Expand Down Expand Up @@ -115,7 +114,6 @@ negate-scroll-default-handler = [
]

openvm = [
"dep:openvm",
"dep:openvm-ecc-guest",
"dep:openvm-keccak256-guest",
"dep:openvm-sha256-guest",
Expand Down
1 change: 1 addition & 0 deletions crates/precompile/src/bn128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use revm_primitives::PrecompileOutput;
use std::vec::Vec;
#[cfg(feature = "openvm")]
use {
bn as _,
openvm_ecc_guest::{
weierstrass::{IntrinsicCurve, WeierstrassPoint},
AffinePoint,
Expand Down
2 changes: 2 additions & 0 deletions crates/precompile/src/secp256k1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ mod secp256k1 {
use openvm_ecc_guest::{algebra::IntMod, ecdsa::VerifyingKey, weierstrass::WeierstrassPoint};
use openvm_keccak256_guest::keccak256;
use revm_primitives::{alloy_primitives::B512, B256};
#[cfg(feature = "secp256k1")]
use secp256k1 as _;

pub fn ecrecover(sig: &B512, mut recid: u8, msg: &B256) -> Result<B256, Error> {
// parse signature
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ rstest = "0.22.0"
alloy-provider = "0.5.3"

[features]
default = ["std", "c-kzg", "secp256k1", "portable", "blst"]
default = ["std", "c-kzg", "portable", "blst"]
std = [
"serde?/std",
"serde_json?/std",
Expand Down

0 comments on commit 97e760f

Please sign in to comment.