Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
feat: transfer ownership task
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Feb 28, 2022
1 parent 71203f1 commit f3faba2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/transfer-ownership.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { BentoBoxV1 } from '../types'
import { task } from 'hardhat/config'

task('transfer-ownership', 'Transfer ownership of BentoBox')
.addParam('address', 'Owner address')
.setAction(async function ({ address }: { address: string }, { ethers }) {
const bentoBox = await ethers.getContract<BentoBoxV1>('BentoBoxV1')
await bentoBox.transferOwnership(address, true, false)
})

0 comments on commit f3faba2

Please sign in to comment.