From bc2098560c23093a49ad151e716c6fc407bf1272 Mon Sep 17 00:00:00 2001 From: Mark Toda Date: Tue, 5 Nov 2024 21:38:22 -0800 Subject: [PATCH] fix: use default create2 function signature --- src/UniswapV4DeployerCompetition.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UniswapV4DeployerCompetition.sol b/src/UniswapV4DeployerCompetition.sol index c44731ba..6d45c715 100644 --- a/src/UniswapV4DeployerCompetition.sol +++ b/src/UniswapV4DeployerCompetition.sol @@ -54,7 +54,7 @@ contract UniswapV4DeployerCompetition is IUniswapV4DeployerCompetition { address saltSubAddress = address(bytes20(salt)); if (saltSubAddress != msg.sender && saltSubAddress != address(0)) revert InvalidSender(salt, msg.sender); - address newAddress = Create2.computeAddress(salt, initCodeHash, address(this)); + address newAddress = Create2.computeAddress(salt, initCodeHash); if (bestAddress != address(0) && !newAddress.betterThan(bestAddress)) { revert WorseAddress(newAddress, bestAddress, newAddress.score(), bestAddress.score()); }