From 996f79a2f17694f3cb8b352b0da00bbe50f66f1d Mon Sep 17 00:00:00 2001 From: satyam Date: Wed, 25 Apr 2018 11:34:45 +0530 Subject: [PATCH] add verify call to sto in the migrations --- CHANGELOG.md | 3 ++- migrations/2_deploy_contracts.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31681f579..4aa47cc71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ All notable changes to this project will be documented in this file. ## Changed * Fixed `capReached()` which was checking fundsRaised agains cap, but the cap is expressed in tokens. -* Constant key variables migrated from the securityToken to ISecurityToken contract. +* Constant key variables migrated from the securityToken to ISecurityToken contract. +* Solidity compiler version get changed to 0.4.23 that leads to the addition of reason string in the `require` and `revert` statements. ## Added diff --git a/migrations/2_deploy_contracts.js b/migrations/2_deploy_contracts.js index ae159eed6..39258010e 100644 --- a/migrations/2_deploy_contracts.js +++ b/migrations/2_deploy_contracts.js @@ -79,6 +79,11 @@ module.exports = function (deployer, network, accounts) { // N) Register the CappedSTOFactory in the ModuleRegistry to make the factory available at the protocol level. // So any securityToken can use that factory to generate the CappedSTOFactory contract. return moduleRegistry.registerModule(CappedSTOFactory.address, {from: PolymathAccount}) + }).then(()=>{ + // G) Once the CappedSTOFactory registered with the ModuleRegistry contract then for making them accessble to the securityToken + // contract, Factory should comes under the verified list of factories or those factories deployed by the securityToken issuers only. + // Here it gets verified because it is deployed by the third party account (Polymath Account) not with the issuer accounts. + return moduleRegistry.verifyModule(CappedSTOFactory.address, true, {from: PolymathAccount}) }).then(() => { console.log('\n') console.log('----- Polymath Core Contracts -----')