Skip to content

Commit

Permalink
Revert "upgrade solady with new CREATE3 impl"
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster-will authored Dec 13, 2024
1 parent 9020512 commit c94c50c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/vectorized/solady
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
4 changes: 2 additions & 2 deletions contracts/Create3Deployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { ICreate3Deployer } from "./ICreate3Deployer.sol";
contract Create3Deployer is ICreate3Deployer {
/// @inheritdoc ICreate3Deployer
function deploy(bytes32 salt, bytes calldata creationCode) external payable returns (address) {
return CREATE3.deployDeterministic(creationCode, salt);
return CREATE3.deploy(salt, creationCode, msg.value);
}

/// @inheritdoc ICreate3Deployer
function getDeployed(bytes32 salt) external view returns (address) {
return CREATE3.predictDeterministicAddress(salt);
return CREATE3.getDeployed(salt);
}
}
1 change: 0 additions & 1 deletion lib/openzeppelin-contracts
Submodule openzeppelin-contracts deleted from 2875a0
2 changes: 1 addition & 1 deletion lib/solady
Submodule solady updated 171 files
12 changes: 12 additions & 0 deletions script/Counter.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import { Script } from "forge-std/Script.sol";

contract CounterScript is Script {
function setUp() public {}

function run() public {
vm.broadcast();
}
}

0 comments on commit c94c50c

Please sign in to comment.