mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
fixed error associated with function viewability
This commit is contained in:
parent
d53e107228
commit
318eecd829
|
@ -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 {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user