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