-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce minor compilation warnings (#964)
Eliminates minor compilation warnings while using the generated smart contracts: > warning: accessing first element with `log . topics.get(0)` --> /Users/squadgazzz/RustroverProjects/services/target/debug/build/contracts-3ef65e6ec386b1a7/out/IUniswapV3Factory.rs:1:29696 | 1 | ...ntract :: errors :: ExecutionError > { let standard_event = log . topics . get (0) . copied () . map (| topic | match topic { self :: ethcontract :: H256 ([198 , 106 , 63 , 223... | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `log . topics.first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
- Loading branch information
1 parent
7a034b1
commit da717d7
Showing
10 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ethcontract-common" | ||
version = "0.25.2" | ||
version = "0.25.3" | ||
authors = ["Gnosis developers <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ethcontract-derive" | ||
version = "0.25.2" | ||
version = "0.25.3" | ||
authors = ["Gnosis developers <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
|
@@ -20,8 +20,8 @@ proc-macro = true | |
|
||
[dependencies] | ||
anyhow = "1.0" | ||
ethcontract-common = { version = "0.25.2", path = "../ethcontract-common" } | ||
ethcontract-generate = { version = "0.25.2", path = "../ethcontract-generate", default-features = false } | ||
ethcontract-common = { version = "0.25.3", path = "../ethcontract-common" } | ||
ethcontract-generate = { version = "0.25.3", path = "../ethcontract-generate", default-features = false } | ||
proc-macro2 = "1.0" | ||
quote = "1.0" | ||
syn = "2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ethcontract-generate" | ||
version = "0.25.2" | ||
version = "0.25.3" | ||
authors = ["Gnosis developers <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
|
@@ -18,7 +18,7 @@ http = ["curl"] | |
[dependencies] | ||
anyhow = "1.0" | ||
curl = { version = "0.4", optional = true } | ||
ethcontract-common = { version = "0.25.2", path = "../ethcontract-common" } | ||
ethcontract-common = { version = "0.25.3", path = "../ethcontract-common" } | ||
Inflector = "0.11" | ||
proc-macro2 = "1.0" | ||
quote = "1.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ethcontract-mock" | ||
version = "0.25.2" | ||
version = "0.25.3" | ||
authors = ["Gnosis developers <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
|
@@ -12,12 +12,12 @@ Tools for mocking ethereum contracts. | |
""" | ||
|
||
[dependencies] | ||
ethcontract = { version = "0.25.2", path = "../ethcontract", default-features = false, features = ["derive"] } | ||
ethcontract = { version = "0.25.3", path = "../ethcontract", default-features = false, features = ["derive"] } | ||
hex = "0.4" | ||
mockall = "0.11" | ||
rlp = "0.5" | ||
predicates = "3.0" | ||
|
||
[dev-dependencies] | ||
tokio = { version = "1.6", features = ["macros", "rt"] } | ||
ethcontract-derive = { version = "0.25.2", path = "../ethcontract-derive", default-features = false } | ||
ethcontract-derive = { version = "0.25.3", path = "../ethcontract-derive", default-features = false } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ethcontract" | ||
version = "0.25.2" | ||
version = "0.25.3" | ||
authors = ["Gnosis developers <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
|
@@ -35,8 +35,8 @@ ws-tokio = ["web3/ws-tokio"] | |
aws-config = { version = "0.55", optional = true } | ||
aws-sdk-kms = { version = "0.28", optional = true } | ||
arrayvec = "0.7" | ||
ethcontract-common = { version = "0.25.2", path = "../ethcontract-common" } | ||
ethcontract-derive = { version = "0.25.2", path = "../ethcontract-derive", optional = true, default-features = false } | ||
ethcontract-common = { version = "0.25.3", path = "../ethcontract-common" } | ||
ethcontract-derive = { version = "0.25.3", path = "../ethcontract-derive", optional = true, default-features = false } | ||
futures = "0.3" | ||
futures-timer = "3.0" | ||
hex = "0.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters