Waits for token mint transaction.

This commit is contained in:
benbierens 2023-04-17 15:14:35 +02:00 committed by Ben Bierens
parent f69f9cf7fe
commit ff6eb147c6
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@ module.exports = async ({ deployments, getNamedAccounts, getUnnamedAccounts }) =
for (const account of accounts) {
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"]