ethers-rs/ethers-contract/ethers-contract-abigen/examples/abigen.rs

11 lines
205 B
Rust
Raw Normal View History

use ethers_contract_abigen::Abigen;
2020-05-26 18:57:59 +00:00
fn main() {
Abigen::new("ERC20Token", "./abi.json")
.unwrap()
2020-05-26 18:57:59 +00:00
.generate()
.unwrap()
.write_to_file("token.rs")
.unwrap();
}