Skip to content

Commit

Permalink
fix: use default create2 function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
marktoda committed Nov 6, 2024
1 parent 17a81bf commit bc20985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UniswapV4DeployerCompetition.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit bc20985

Please sign in to comment.