Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Create2.sol
  • Loading branch information
Amxx authored May 23, 2024
commit f31d3ccf7b7ba05432035616c1983e8e52866a2f
2 changes: 0 additions & 2 deletions contracts/utils/Create2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ library Create2 {
if (bytecode.length == 0) {
revert Create2EmptyBytecode();
}

/// @solidity memory-safe-assembly
assembly {
addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)
Expand All @@ -51,7 +50,6 @@ library Create2 {
revert(0, returndatasize())
}
}

if (addr == address(0)) {
revert Errors.FailedDeployment();
}
Expand Down