Skip to content

Commit

Permalink
some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing committed Sep 6, 2024
1 parent fa025cd commit 4a91915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ anyhow = "1.0"
async-channel = "2.2"
clap = "4"
env_logger = "0.9"
ethers-core = { git = "https://github.com/scroll-tech/ethers-rs.git", branch = "feat/rkyv" }
ethers-providers = { git = "https://github.com/scroll-tech/ethers-rs.git", branch = "feat/rkyv", default-features = false }
futures = "0.3"
serde = "1.0"
serde_json = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ pub fn init_hash_scheme() {
static INIT: Once = Once::new();
INIT.call_once(|| {
zktrie::init_hash_scheme_simple(|a: &[u8; 32], b: &[u8; 32], domain: &[u8; 32]| {
use poseidon_bn254::{hash_with_domain, Fr};
use poseidon_bn254::{hash_with_domain, Fr, PrimeField};
let a = Fr::from_bytes(a).into_option()?;
let b = Fr::from_bytes(b).into_option()?;
let domain = Fr::from_bytes(domain).into_option()?;
Some(hash_with_domain(&[a, b], domain).to_bytes())
Some(hash_with_domain(&[a, b], domain).to_repr())
});
});
}
Expand Down

0 comments on commit 4a91915

Please sign in to comment.