main.rs 280 Bytes
Newer Older
1
fn main() -> Result<(), std::io::Error> {
2
    let abi = <contract::Delegator as ink_lang2::GenerateAbi>::generate_abi();
3 4 5 6 7
    let contents = serde_json::to_string_pretty(&abi)?;
    std::fs::create_dir("target").ok();
    std::fs::write("target/abi.json", contents)?;
    Ok(())
}