You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Removed the Redundant functions from eternal storage contract as mentioned in Issue#483, Converted Internal functions to public ones as mentioned in #484 & there was a function named getArrayString, I have removed that function because it was returning Array of String, which is not possible as it isn't supported by Current ABIENCODER.
* Removed the Redundant functions from eternal storage contract as mentioned in Issue#483, Converted Internal functions to public ones as mentioned in #484 & there was a function named getArrayString, I have removed that function because it was returning Array of String, which is not possible as it isn't supported by Current ABIENCODER.
@@ -122,11 +122,11 @@ contract ModuleRegistry is IModuleRegistry, EternalStorage {
122
122
*/
123
123
function useModule(address_moduleFactory) external {
124
124
// This if statement is required to be able to add modules from the token proxy contract during deployment
125
-
if (ISecurityTokenRegistry(getAddress(Encoder.getKey("securityTokenRegistry"))).isSecurityToken(msg.sender)) {
126
-
if (IFeatureRegistry(getAddress(Encoder.getKey("featureRegistry"))).getFeatureStatus("customModulesAllowed")) {
127
-
require(getBool(Encoder.getKey("verified", _moduleFactory)) ||IOwnable(_moduleFactory).owner() ==IOwnable(msg.sender).owner(),"ModuleFactory must be verified or SecurityToken owner must be ModuleFactory owner");
125
+
if (ISecurityTokenRegistry(getAddressValue(Encoder.getKey("securityTokenRegistry"))).isSecurityToken(msg.sender)) {
126
+
if (IFeatureRegistry(getAddressValue(Encoder.getKey("featureRegistry"))).getFeatureStatus("customModulesAllowed")) {
127
+
require(getBoolValue(Encoder.getKey("verified", _moduleFactory)) ||IOwnable(_moduleFactory).owner() ==IOwnable(msg.sender).owner(),"ModuleFactory must be verified or SecurityToken owner must be ModuleFactory owner");
128
128
} else {
129
-
require(getBool(Encoder.getKey("verified", _moduleFactory)), "ModuleFactory must be verified");
129
+
require(getBoolValue(Encoder.getKey("verified", _moduleFactory)), "ModuleFactory must be verified");
130
130
}
131
131
require(_isCompatibleModule(_moduleFactory, msg.sender), "Version should within the compatible range of ST");
0 commit comments