From b90d06936637fcd2ff9d1a60334e2424976b49b0 Mon Sep 17 00:00:00 2001 From: Shebin John Date: Thu, 9 Jan 2025 11:36:46 +0100 Subject: [PATCH] I-03. Inconsistency in formula for performCreate and performCreate2 --- contracts/libraries/CreateCall.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/libraries/CreateCall.sol b/contracts/libraries/CreateCall.sol index 735d6f118..8054c8356 100644 --- a/contracts/libraries/CreateCall.sol +++ b/contracts/libraries/CreateCall.sol @@ -22,7 +22,7 @@ contract CreateCall { /* solhint-disable no-inline-assembly */ /// @solidity memory-safe-assembly assembly { - newContract := create2(value, add(0x20, deploymentData), mload(deploymentData), salt) + newContract := create2(value, add(deploymentData, 0x20), mload(deploymentData), salt) } /* solhint-enable no-inline-assembly */ require(newContract != address(0), "Could not deploy contract");