diff --git a/Cargo.lock b/Cargo.lock index aef84c7..706cf84 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1531,8 +1531,8 @@ dependencies = [ [[package]] name = "ethers-core" -version = "2.0.7" -source = "git+https://github.com/gakonst/ethers-rs?rev=3110864#311086466871204c3965065b8c81e47418261412" +version = "2.0.8" +source = "git+https://github.com/gakonst/ethers-rs?rev=030bf43#030bf439a100dcacd2e968e3114de0612229056b" dependencies = [ "arrayvec", "bytes", @@ -2960,7 +2960,7 @@ dependencies = [ "ark-relations 0.3.0", "ark-std 0.3.0", "color-eyre 0.6.2", - "ethers-core 2.0.7", + "ethers-core 2.0.8", "once_cell", "rand", "rand_chacha", diff --git a/semaphore/Cargo.toml b/semaphore/Cargo.toml index ffc0f4a..6a2d0a2 100644 --- a/semaphore/Cargo.toml +++ b/semaphore/Cargo.toml @@ -21,7 +21,7 @@ color-eyre = "0.6.1" once_cell = "1.8" rand = "0.8.4" semaphore = { git = "https://github.com/worldcoin/semaphore-rs", rev = "ee658c2"} -ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false, rev = "3110864" } +ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false, rev = "030bf43" } ruint = { version = "1.2.0", features = [ "serde", "num-bigint", "ark-ff" ] } serde = "1.0" thiserror = "1.0.0" diff --git a/utils/src/poseidon/poseidon_constants.rs b/utils/src/poseidon/poseidon_constants.rs index 679dfdc..80a6ad3 100644 --- a/utils/src/poseidon/poseidon_constants.rs +++ b/utils/src/poseidon/poseidon_constants.rs @@ -36,20 +36,12 @@ impl PoseidonGrainLFSR { assert!(is_field == 1); // b0, b1 describes the field - if is_field == 1 { - state[1] = true; - } else { - state[1] = false; - } + state[1] = is_field == 1; assert!(is_sbox_an_inverse == 0 || is_sbox_an_inverse == 1); // b2, ..., b5 describes the S-BOX - if is_sbox_an_inverse == 1 { - state[5] = true; - } else { - state[5] = false; - } + state[5] = is_sbox_an_inverse == 1; // b6, ..., b17 are the binary representation of n (prime_num_bits) {