chore: bump ethers-core (#182)

* fix: version

* fix: clippy
This commit is contained in:
Aaryamann Challani 2023-07-24 08:51:00 +02:00 committed by GitHub
parent 8a365f0c9e
commit 131cacab35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 14 deletions

6
Cargo.lock generated
View File

@ -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",

View File

@ -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"

View File

@ -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)
{