From c41b0563af3caa10e9007e2c2c8a03164912c7b0 Mon Sep 17 00:00:00 2001 From: 0xernesto <78889960+0xernesto@users.noreply.github.com> Date: Wed, 1 Nov 2023 22:07:01 -0500 Subject: [PATCH] style: delete script directory and reorder functions in ICreate2Factory --- script/Create2Factory.s.sol | 12 ------------ script/Create3Factory.s.sol | 12 ------------ src/create2/interfaces/ICreate2Factory.sol | 4 ++-- 3 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 script/Create2Factory.s.sol delete mode 100644 script/Create3Factory.s.sol diff --git a/script/Create2Factory.s.sol b/script/Create2Factory.s.sol deleted file mode 100644 index 9000a2c..0000000 --- a/script/Create2Factory.s.sol +++ /dev/null @@ -1,12 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.13; - -import { Script, console2 } from "forge-std/Script.sol"; - -contract CounterScript is Script { - function setUp() public { } - - function run() public { - vm.broadcast(); - } -} diff --git a/script/Create3Factory.s.sol b/script/Create3Factory.s.sol deleted file mode 100644 index 9000a2c..0000000 --- a/script/Create3Factory.s.sol +++ /dev/null @@ -1,12 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.13; - -import { Script, console2 } from "forge-std/Script.sol"; - -contract CounterScript is Script { - function setUp() public { } - - function run() public { - vm.broadcast(); - } -} diff --git a/src/create2/interfaces/ICreate2Factory.sol b/src/create2/interfaces/ICreate2Factory.sol index f109e24..4cb8b5c 100644 --- a/src/create2/interfaces/ICreate2Factory.sol +++ b/src/create2/interfaces/ICreate2Factory.sol @@ -3,11 +3,11 @@ pragma solidity ^0.8.21; interface ICreate2Factory { function userNonces(address _principal, bytes32 _hashedBytecode) external returns (uint256); - function getDeploymentHistory(address _principal) external returns (address[] memory); function getTransactionHash(address _principal, bytes memory _bytecode, uint256 _nonce) external returns (bytes32); - function getBytecodeHash(bytes memory _bytecode) external pure returns (bytes32); function getAddress(address _principal, bytes memory _bytecode) external returns (address); + function getBytecodeHash(bytes memory _bytecode) external pure returns (bytes32); + function getDeploymentHistory(address _principal) external returns (address[] memory); function deploy(address _principal, bytes memory _signature, bytes memory _bytecode) external returns (address); }