generated from proofoftom/buidler-waffle-typechain-quasar
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move deploySponsor.ts from tasks to cli
- Loading branch information
Showing
2 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
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,23 @@ | ||
/** | ||
* Deploy an instance of the BrightID sponsor contract | ||
* | ||
* Sample usage: | ||
* | ||
* HARDHAT_NETWORK=localhost yarn ts-node cli/deploySponsor.ts | ||
*/ | ||
import { ethers } from 'hardhat' | ||
|
||
async function main() { | ||
const SponsorContract = await ethers.getContractFactory('BrightIdSponsor') | ||
const sponsor = await SponsorContract.deploy() | ||
console.log('Deployed the sponsor contract at', sponsor.address) | ||
} | ||
|
||
main() | ||
.then(() => { | ||
process.exit(0) | ||
}) | ||
.catch((err) => { | ||
console.error(err) | ||
process.exit(-1) | ||
}) |
This file was deleted.
Oops, something went wrong.