Skip to content

Commit

Permalink
move deploySponsor.ts from tasks to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Nov 27, 2023
1 parent c11fdca commit 781e360
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
23 changes: 23 additions & 0 deletions contracts/cli/deploySponsor.ts
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)
})
9 changes: 0 additions & 9 deletions contracts/tasks/deploySponsor.ts

This file was deleted.

0 comments on commit 781e360

Please sign in to comment.