Skip to content

Commit

Permalink
Deploy MultiOutput example (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresaiello committed May 22, 2023
1 parent 1707b6f commit b42cc46
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/zevm-example-contracts/scripts/multi-output/deploy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { ethers } from "hardhat";

import { ZetaMultiOutput, ZetaMultiOutput__factory } from "../../typechain-types";
import { SYSTEM_CONTRACT } from "../systemConstants";

const main = async () => {
console.log(`Deploying MultiOutput...`);

const Factory = (await ethers.getContractFactory("ZetaMultiOutput")) as ZetaMultiOutput__factory;
const contract = (await Factory.deploy(SYSTEM_CONTRACT)) as ZetaMultiOutput;
await contract.deployed();

console.log("Deployed MultiOutput. Address:", contract.address);
};

main().catch(error => {
console.error(error);
process.exit(1);
});

0 comments on commit b42cc46

Please # to comment.