Skip to content

Commit

Permalink
feat: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yashdesu committed Mar 26, 2024
1 parent 8b05682 commit 5edd4f8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ async function main() {
console.log()

// >>> Verify SBTImplementation code >>>
console.log('Verifying SBT implementation contract')
console.log('Verifying SBT implementation contract...')
await run(`verify:verify`, {
address: sbtImplementation.address,
constructorArguments: [],
})
console.log()

// >>> Verify SBTProxy code >>>
console.log('Verifying SBT proxy contract')
console.log('Verifying SBT proxy contract...')
await run(`verify:verify`, {
address: sbtProxyInstance.address,
contract: 'contracts/SBTProxy.sol:SBTProxy',
Expand Down
32 changes: 32 additions & 0 deletions scripts/deploySBTFactory.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { ethers, run } from 'hardhat'

async function main() {
console.log('Starting deploySBTFactory script on sbt-tokens...')

const [signer] = await ethers.getSigners()
console.log('Signer is: ', signer.address)
console.log()

// >>> Deploy SBTFactory >>>
console.log('Deploying SBTFactory...')
const sbtFactoryFactory = await ethers.getContractFactory('SBTFactory')
const sbtFactoryInstance = await sbtFactoryFactory.deploy()
await sbtFactoryInstance.deployed()
console.log(` - SBTFactory deployed at address:${sbtFactoryInstance.address}`)
console.log()

// >>> Verify SBTFactory code >>>
console.log('Verifying SBT implementation contract...')
await run(`verify:verify`, {
address: sbtFactoryInstance.address,
constructorArguments: [],
})
console.log()
}

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

0 comments on commit 5edd4f8

Please sign in to comment.