Waits for token mint transaction.
This commit is contained in:
parent
f69f9cf7fe
commit
ff6eb147c6
|
@ -9,9 +9,9 @@ module.exports = async ({ deployments, getNamedAccounts, getUnnamedAccounts }) =
|
||||||
for (const account of accounts) {
|
for (const account of accounts) {
|
||||||
console.log(`Minting ${MINTED_TOKENS} tokens to address ${account}`)
|
console.log(`Minting ${MINTED_TOKENS} tokens to address ${account}`)
|
||||||
|
|
||||||
await token.mint(account, MINTED_TOKENS, { from: deployer })
|
const transaction = await token.mint(account, MINTED_TOKENS, { from: deployer })
|
||||||
|
await transaction.wait()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.tags = ["TestToken"]
|
module.exports.tags = ["TestToken"]
|
||||||
|
|
Loading…
Reference in New Issue