Skip to content

Commit

Permalink
I-03. Inconsistency in formula for performCreate and performCreate2
Browse files Browse the repository at this point in the history
  • Loading branch information
remedcu committed Jan 9, 2025
1 parent 77bab0d commit b90d069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/libraries/CreateCall.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit b90d069

Please sign in to comment.