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