From ff6eb147c68bbb0cb20a31d6cd11232a5e37ccdd Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 17 Apr 2023 15:14:35 +0200 Subject: [PATCH] Waits for token mint transaction. --- deploy/token.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/token.js b/deploy/token.js index f545638..3acb441 100644 --- a/deploy/token.js +++ b/deploy/token.js @@ -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"]