Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
fix: override isOwner
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Ermolin committed Mar 26, 2021
1 parent b7a7c91 commit f561c21
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contracts/staking/stakeManager/StakeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ contract StakeManager is
delegationEnabled = true;
}

function isOwner() public view returns (bool) {
address _owner;
bytes32 position = keccak256("matic.network.proxy.owner");
assembly {
_owner := sload(position)
}
return msg.sender == _owner;
}

/**
Public View Methods
*/
Expand Down

0 comments on commit f561c21

Please sign in to comment.