From 4d647453e3df09d0934964ef913951cd38366286 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Fri, 17 Dec 2021 00:24:10 +0200 Subject: [PATCH] feat: new ethabi for error types (#700) --- Cargo.lock | 11 +++++++---- ethers-core/Cargo.toml | 2 +- ethers-core/src/abi/human_readable.rs | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cb79ff8d..bac560b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/ethers-core/Cargo.toml b/ethers-core/Cargo.toml index 255a7199..efc31bf2 100644 --- a/ethers-core/Cargo.toml +++ b/ethers-core/Cargo.toml @@ -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 } diff --git a/ethers-core/src/abi/human_readable.rs b/ethers-core/src/abi/human_readable.rs index 0328cdab..7375a1b9 100644 --- a/ethers-core/src/abi/human_readable.rs +++ b/ethers-core/src/abi/human_readable.rs @@ -55,6 +55,7 @@ impl AbiParser { constructor: None, functions: BTreeMap::new(), events: BTreeMap::new(), + errors: BTreeMap::new(), receive: false, fallback: false, };