fixed error associated with function viewability

This commit is contained in:
Sowmayjain 2019-03-21 02:22:15 +05:30
parent d53e107228
commit 318eecd829
2 changed files with 5 additions and 5 deletions

View File

@ -106,8 +106,8 @@ contract WalletRegistry is LogicRegistry {
event Created(address indexed sender, address indexed owner, address proxy);
mapping(address => UserWallet) public proxies;
bool public guardianEnabled; // user guardian mechanism enabled
bool public managerEnabled; // is user admin mechanism enabled
bool public guardianEnabled; // user guardian mechanism enabled in overall system
bool public managerEnabled; // user manager mechanism enabled in overall system
/**
* @dev deploys a new proxy instance and sets msg.sender as owner of proxy
@ -152,7 +152,7 @@ contract WalletRegistry is LogicRegistry {
guardianEnabled = false;
}
/**
/**
* @dev enable user manager in overall system
*/
function enableManager() public isAdmin {

View File

@ -245,7 +245,7 @@ contract UserManager is UserGuardian {
/**
* @dev Throws if the msg.sender is not manager
*/
function isManager() internal view returns (bool) {
function isManager() internal isManagerEnabled returns (bool) {
if (msg.sender == managers[1] || msg.sender == managers[2] || msg.sender == managers[3]) {
return true;
} else {
@ -354,7 +354,7 @@ contract UserWallet is UserManager, UserNote {
* and if the sender is owner or contract itself or manager
* and if manager then Throws if target is default proxy address
*/
function isExecutable(address proxyTarget) internal view returns (bool) {
function isExecutable(address proxyTarget) internal returns (bool) {
(bool isLogic, bool isDefault) = isLogicAuthorised(proxyTarget);
require(isLogic, "logic-proxy-address-not-allowed");
if (isAuth(msg.sender)) {