From 3ccea178bc51d0a5bd1343bf66639f9eccc56a87 Mon Sep 17 00:00:00 2001 From: Alex Rea Date: Mon, 27 Nov 2023 15:47:59 +0000 Subject: [PATCH] Fix spotty upgrade test setup --- scripts/deployOldUpgradeableVersionTruffle.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/deployOldUpgradeableVersionTruffle.js b/scripts/deployOldUpgradeableVersionTruffle.js index 9e8e0a987d..229635e0c9 100644 --- a/scripts/deployOldUpgradeableVersionTruffle.js +++ b/scripts/deployOldUpgradeableVersionTruffle.js @@ -11,7 +11,12 @@ module.exports = async (callback) => { const implementationNames = process.argv[implementationNameArgPost + 1].split(","); const implementations = implementationNames.map((x) => artifacts.require(x)); - const deployments = await Promise.all(implementations.map((x) => x.new())); + const deployments = []; + for (let idx = 0; idx < implementations.length; idx += 1) { + const res = await implementations[idx].new(); + deployments.push(res); + } + const resolver = await Resolver.new(); const deployedImplementations = {};