@@ -49,7 +49,7 @@ contract AdminLessERC1967Factory {
4949 /// @dev Deploys a proxy for `implementation`,
5050 /// and returns its address.
5151 /// The value passed into this function will be forwarded to the proxy.
52- function deploy (address implementation ) public payable returns (address proxy ) {
52+ function deploy (address implementation ) internal returns (address proxy ) {
5353 proxy = deployAndCall (implementation, _emptyData ());
5454 }
5555
@@ -58,8 +58,7 @@ contract AdminLessERC1967Factory {
5858 /// The value passed into this function will be forwarded to the proxy.
5959 /// Then, calls the proxy with abi encoded `data`.
6060 function deployAndCall (address implementation , bytes calldata data )
61- public
62- payable
61+ internal
6362 returns (address proxy )
6463 {
6564 proxy = _deploy (implementation, bytes32 (0 ), false , data);
@@ -69,8 +68,7 @@ contract AdminLessERC1967Factory {
6968 /// and returns its deterministic address.
7069 /// The value passed into this function will be forwarded to the proxy.
7170 function deployDeterministic (address implementation , bytes32 salt )
72- public
73- payable
71+ internal
7472 returns (address proxy )
7573 {
7674 proxy = deployDeterministicAndCall (implementation, salt, _emptyData ());
@@ -84,7 +82,7 @@ contract AdminLessERC1967Factory {
8482 address implementation ,
8583 bytes32 salt ,
8684 bytes calldata data
87- ) public payable returns (address proxy ) {
85+ ) internal returns (address proxy ) {
8886 /// @solidity memory-safe-assembly
8987 assembly {
9088 // If the salt does not start with the zero address or the caller.
0 commit comments