@@ -28,7 +28,7 @@ contract AdminLessERC1967Factory {
2828
2929 /// @dev A proxy has been deployed.
3030 event Deployed (address indexed proxy , address indexed implementation );
31-
31+
3232 /// @dev `keccak256(bytes("Deployed(address,address)"))`.
3333 uint256 internal constant _DEPLOYED_EVENT_SIGNATURE =
3434 0x09e48df7857bd0c1e0d31bb8a85d42cf1874817895f171c917f6ee2cea73ec20 ;
@@ -39,8 +39,7 @@ contract AdminLessERC1967Factory {
3939
4040 /// @dev The ERC-1967 storage slot for the implementation in the proxy.
4141 /// `uint256(keccak256("eip1967.proxy.implementation")) - 1`.
42- uint256 internal constant _IMPLEMENTATION_SLOT =
43- 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc ;
42+ uint256 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc ;
4443
4544 /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
4645 /* DEPLOY FUNCTIONS */
@@ -57,32 +56,25 @@ contract AdminLessERC1967Factory {
5756 /// and returns its address.
5857 /// The value passed into this function will be forwarded to the proxy.
5958 /// Then, calls the proxy with abi encoded `data`.
60- function deployAndCall (address implementation , bytes calldata data )
61- internal
62- returns (address proxy )
63- {
59+ function deployAndCall (address implementation , bytes calldata data ) internal returns (address proxy ) {
6460 proxy = _deploy (implementation, bytes32 (0 ), false , data);
6561 }
6662
6763 /// @dev Deploys a proxy for `implementation`, with `salt`,
6864 /// and returns its deterministic address.
6965 /// The value passed into this function will be forwarded to the proxy.
70- function deployDeterministic (address implementation , bytes32 salt )
71- internal
72- returns (address proxy )
73- {
66+ function deployDeterministic (address implementation , bytes32 salt ) internal returns (address proxy ) {
7467 proxy = deployDeterministicAndCall (implementation, salt, _emptyData ());
7568 }
7669
7770 /// @dev Deploys a proxy for `implementation`, with `salt`,
7871 /// and returns its deterministic address.
7972 /// The value passed into this function will be forwarded to the proxy.
8073 /// Then, calls the proxy with abi encoded `data`.
81- function deployDeterministicAndCall (
82- address implementation ,
83- bytes32 salt ,
84- bytes calldata data
85- ) internal returns (address proxy ) {
74+ function deployDeterministicAndCall (address implementation , bytes32 salt , bytes calldata data )
75+ internal
76+ returns (address proxy )
77+ {
8678 /// @solidity memory-safe-assembly
8779 assembly {
8880 // If the salt does not start with the zero address or the caller.
@@ -95,12 +87,10 @@ contract AdminLessERC1967Factory {
9587 }
9688
9789 /// @dev Deploys the proxy, with optionality to deploy deterministically with a `salt`.
98- function _deploy (
99- address implementation ,
100- bytes32 salt ,
101- bool useSalt ,
102- bytes calldata data
103- ) internal returns (address proxy ) {
90+ function _deploy (address implementation , bytes32 salt , bool useSalt , bytes calldata data )
91+ internal
92+ returns (address proxy )
93+ {
10494 bytes memory m = _initCode ();
10595 /// @solidity memory-safe-assembly
10696 assembly {
0 commit comments