feat: new ethabi for error types (#700)

This commit is contained in:
Georgios Konstantopoulos 2021-12-17 00:24:10 +02:00 committed by GitHub
parent cf53924334
commit 4d647453e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

11
Cargo.lock generated
View File

@ -1067,11 +1067,9 @@ dependencies = [
[[package]] [[package]]
name = "ethabi" name = "ethabi"
version = "15.0.0" version = "16.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/rust-ethereum/ethabi?branch=master#7f4bb3d6164775928485b2bad2f6e130a96f438e"
checksum = "f76ef192b63e8a44b3d08832acebbb984c3fba154b5c26f70037c860202a0d4b"
dependencies = [ dependencies = [
"anyhow",
"ethereum-types", "ethereum-types",
"hex", "hex",
"serde", "serde",
@ -4142,3 +4140,8 @@ dependencies = [
"syn", "syn",
"synstructure", "synstructure",
] ]
[[patch.unused]]
name = "ethabi"
version = "16.0.0"
source = "git+https://github.com/rust-ethereum/ethabi#7f4bb3d6164775928485b2bad2f6e130a96f438e"

View File

@ -11,7 +11,7 @@ keywords = ["ethereum", "web3", "celo", "ethers"]
[dependencies] [dependencies]
rlp = { version = "0.5.0", default-features = false } rlp = { version = "0.5.0", default-features = false }
ethabi = { version = "15.0", default-features = false, features = ["full-serde", "rlp"] } ethabi = { git = "https://github.com/rust-ethereum/ethabi", branch = "master", default-features = false, features = ["full-serde", "rlp"] }
arrayvec = { version = "0.7.2", default-features = false } arrayvec = { version = "0.7.2", default-features = false }
rlp-derive = { version = "0.1.0", default-features = false } rlp-derive = { version = "0.1.0", default-features = false }

View File

@ -55,6 +55,7 @@ impl AbiParser {
constructor: None, constructor: None,
functions: BTreeMap::new(), functions: BTreeMap::new(),
events: BTreeMap::new(), events: BTreeMap::new(),
errors: BTreeMap::new(),
receive: false, receive: false,
fallback: false, fallback: false,
}; };