13 lines
459 B
JavaScript
13 lines
459 B
JavaScript
|
module.exports = async ({deployments, getNamedAccounts}) => {
|
||
|
const token = await deployments.get('TestToken')
|
||
|
const stakeAmount = 100
|
||
|
const slashMisses = 3
|
||
|
const slashPercentage = 10
|
||
|
const args = [token.address, stakeAmount, slashMisses, slashPercentage]
|
||
|
const { deployer } = await getNamedAccounts()
|
||
|
await deployments.deploy('Storage', { args, from: deployer })
|
||
|
}
|
||
|
|
||
|
module.exports.tags = ['Storage']
|
||
|
module.exports.dependencies = ['TestToken']
|