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

Commit f561c21

Browse files
author
Denis Ermolin
committed
fix: override isOwner
1 parent b7a7c91 commit f561c21

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

contracts/staking/stakeManager/StakeManager.sol

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ contract StakeManager is
107107
delegationEnabled = true;
108108
}
109109

110+
function isOwner() public view returns (bool) {
111+
address _owner;
112+
bytes32 position = keccak256("matic.network.proxy.owner");
113+
assembly {
114+
_owner := sload(position)
115+
}
116+
return msg.sender == _owner;
117+
}
118+
110119
/**
111120
Public View Methods
112121
*/

0 commit comments

Comments
 (0)