@@ -104,10 +104,10 @@ impl BindArgs {
104104 let _ = ProjectCompiler :: new ( ) . compile ( & project) ?;
105105 }
106106
107- if ! self . alloy {
107+ if self . ethers {
108108 eprintln ! (
109- "Warning: `--ethers` (default) bindings are deprecated and will be removed in the future. \
110- Consider using `--alloy` instead."
109+ "Warning: `--ethers` bindings are deprecated and will be removed in the future. \
110+ Consider using `--alloy` (default) instead."
111111 ) ;
112112 }
113113
@@ -191,7 +191,7 @@ impl BindArgs {
191191 fn get_json_files ( & self , artifacts : & Path ) -> Result < impl Iterator < Item = ( String , PathBuf ) > > {
192192 let filter = self . get_filter ( ) ?;
193193 let alloy_filter = self . get_alloy_filter ( ) ?;
194- let is_alloy = self . alloy ;
194+ let is_alloy = ! self . ethers ;
195195 Ok ( json_files ( artifacts)
196196 . filter_map ( |path| {
197197 // Ignore the build info JSON.
@@ -264,7 +264,7 @@ impl BindArgs {
264264
265265 /// Check that the existing bindings match the expected abigen output
266266 fn check_existing_bindings ( & self , artifacts : & Path , bindings_root : & Path ) -> Result < ( ) > {
267- if ! self . alloy {
267+ if self . ethers {
268268 return self . check_ethers ( artifacts, bindings_root) ;
269269 }
270270
@@ -316,7 +316,7 @@ impl BindArgs {
316316
317317 /// Generate the bindings
318318 fn generate_bindings ( & self , artifacts : & Path , bindings_root : & Path ) -> Result < ( ) > {
319- if ! self . alloy {
319+ if self . ethers {
320320 return self . generate_ethers ( artifacts, bindings_root) ;
321321 }
322322
0 commit comments