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]]
name = "ethabi"
version = "15.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f76ef192b63e8a44b3d08832acebbb984c3fba154b5c26f70037c860202a0d4b"
version = "16.0.0"
source = "git+https://github.com/rust-ethereum/ethabi?branch=master#7f4bb3d6164775928485b2bad2f6e130a96f438e"
dependencies = [
"anyhow",
"ethereum-types",
"hex",
"serde",
@ -4142,3 +4140,8 @@ dependencies = [
"syn",
"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]
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 }
rlp-derive = { version = "0.1.0", default-features = false }

View File

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