From 6205119349dddc89f05ab56f7b9560b69af44a50 Mon Sep 17 00:00:00 2001 From: Skanda Bhat Date: Tue, 11 Jan 2022 14:40:53 +0530 Subject: [PATCH] V0.2.0 patch1 (#638) * Update npm version * Add assetManagerAddress to post deployment script * added tolerance --- migrations/src/postDeploymentSetup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/src/postDeploymentSetup.js b/migrations/src/postDeploymentSetup.js index db562c1e..5362557a 100644 --- a/migrations/src/postDeploymentSetup.js +++ b/migrations/src/postDeploymentSetup.js @@ -101,7 +101,7 @@ module.exports = async () => { assetManagerAddress, randomNoManagerAddress)); pendingTransactions.push(await voteManager.initialize(stakeManagerAddress, rewardManagerAddress, blockManagerAddress)); pendingTransactions.push(await stakeManager.initialize(RAZORAddress, rewardManagerAddress, voteManagerAddress, stakedTokenFactoryAddress)); - pendingTransactions.push(await rewardManager.initialize(stakeManagerAddress, voteManagerAddress, blockManagerAddress)); + pendingTransactions.push(await rewardManager.initialize(stakeManagerAddress, voteManagerAddress, blockManagerAddress, assetManagerAddress)); pendingTransactions.push(await delegator.updateAddress(assetManagerAddress, blockManagerAddress)); pendingTransactions.push(await randomNoManager.initialize(blockManagerAddress)); pendingTransactions.push(await governance.initialize(blockManagerAddress, rewardManagerAddress, stakeManagerAddress, @@ -154,7 +154,7 @@ module.exports = async () => { for (let i = 0; i < collections.length; i++) { await waitForConfirmState(numStates, stateLength); const collection = collections[i]; - await assetManager.createCollection(collection.jobIDs, collection.aggregationMethod, collection.power, collection.name); + await assetManager.createCollection(collection.tolerance, collection.power, collection.aggregationMethod, collection.jobIDs, collection.name); console.log(`Collection Created : ${collection.name}`); } console.log('Contracts deployed successfully & initial setup is done');