main.rs 245 Bytes
Newer Older
Hero Bird's avatar
Hero Bird committed
1 2 3 4 5 6 7
fn main() -> Result<(), std::io::Error> {
    let abi = contract::ink_generate_abi();
    let contents = serde_json::to_string_pretty(&abi)?;
    std::fs::create_dir("target").ok();
    std::fs::write("target/abi.json", contents)?;
    Ok(())
}