From c418f4ef34849df2124fd843b64cd007b00575dd Mon Sep 17 00:00:00 2001 From: Clifton King Date: Tue, 26 Jul 2022 10:28:39 -0500 Subject: [PATCH] fix(abigen): abigen feature required for bindings (#1508) * fix(abigen): abigen feature required for bindings traits such as ethers::contract::EthDisplay require abigen * update changelog * abigen now uses re-exported version of serde_json --- CHANGELOG.md | 2 ++ ethers-contract/ethers-contract-abigen/src/multi.rs | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10851490..fefd4112 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -97,6 +97,8 @@ [#1498](https://github.com/gakonst/ethers-rs/pull/1498). Note: this changes generated module names to snake case. For example, `MyContract` is now `my_contract` rather than `mycontract_mod`. +- The `Cargo.toml` generated by bindings now includes the `abigen` feature on + ethers. [#1508](https://github.com/gakonst/ethers-rs/pull/1508) ### 0.6.0 diff --git a/ethers-contract/ethers-contract-abigen/src/multi.rs b/ethers-contract/ethers-contract-abigen/src/multi.rs index 0023f583..6266abcc 100644 --- a/ethers-contract/ethers-contract-abigen/src/multi.rs +++ b/ethers-contract/ethers-contract-abigen/src/multi.rs @@ -530,8 +530,7 @@ impl MultiBindingsInner { writeln!( toml, r#" -ethers = {{ git = "https://github.com/gakonst/ethers-rs", default-features = false }} -serde_json = "1.0.79" +ethers = {{ git = "https://github.com/gakonst/ethers-rs", default-features = false, features = ["abigen"] }} "# )?; Ok(toml)