-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1707b6f
commit b42cc46
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
packages/zevm-example-contracts/scripts/multi-output/deploy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); |