From 9876b49e6c3d3120b9e9cad33a9a8cbe68838c89 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 23 Feb 2022 11:36:14 +0100 Subject: [PATCH] docs(abigen): improve abigen type docs (#953) * docs(abigen): improve abigen type docs * Update ethers-contract/ethers-contract-abigen/src/lib.rs Co-authored-by: Georgios Konstantopoulos --- ethers-contract/ethers-contract-abigen/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ethers-contract/ethers-contract-abigen/src/lib.rs b/ethers-contract/ethers-contract-abigen/src/lib.rs index a93f1aa3..acdee628 100644 --- a/ethers-contract/ethers-contract-abigen/src/lib.rs +++ b/ethers-contract/ethers-contract-abigen/src/lib.rs @@ -37,10 +37,13 @@ use std::{collections::HashMap, fs::File, io::Write, path::Path}; /// [still not supported by Vyper](https://github.com/vyperlang/vyper/issues/1931), so you must adjust your ABIs and replace /// `constant` functions with `view` or `pure`. /// +/// To generate bindings for _multiple_ contracts at once see also [`crate::MultiAbigen`]. +/// /// # Example /// -/// Running the command below will generate a file called `token.rs` containing the -/// bindings inside, which exports an `ERC20Token` struct, along with all its events. +/// Running the code below will generate a file called `token.rs` containing the +/// bindings inside, which exports an `ERC20Token` struct, along with all its events. Put into a +/// `build.rs` file this will generate the bindings during `cargo build`. /// /// ```no_run /// # use ethers_contract_abigen::Abigen;