Skip to content

Commit

Permalink
Refactors LibHelpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesduncombe committed Apr 4, 2024
1 parent 66ec228 commit a0a22de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/lib/LibHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import "../interfaces/IERC173.sol";
library LibHelpers {
address internal constant ZERO_ADDRESS = address(0);
address internal constant DEPLOYER_CONTRACT = 0x6DF2D25d8C6FD680730ee658b530A05a99BB769a;
address internal constant DEPLOYER_CONTRACT_AMOY = 0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7;
// SEE: https://github.com/safe-global/safe-singleton-factory
address internal constant DEPLOYER_CONTRACT_EIP155 = 0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7;

function _isDiamondFacet(address who) internal view returns (bool) {
return who == address(this);
Expand All @@ -18,6 +19,6 @@ library LibHelpers {
}

function _isDeployer(address who) internal pure returns (bool) {
return (who == LibHelpers.DEPLOYER_CONTRACT) || (who == LibHelpers.DEPLOYER_CONTRACT_AMOY);
return (who == LibHelpers.DEPLOYER_CONTRACT) || (who == LibHelpers.DEPLOYER_CONTRACT_EIP155);
}
}

0 comments on commit a0a22de

Please sign in to comment.