diff --git a/.gitmodules b/.gitmodules index 7017cc8..690924b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,9 +1,6 @@ [submodule "lib/forge-std"] path = lib/forge-std url = https://github.com/foundry-rs/forge-std -[submodule "lib/openzeppelin-contracts-upgradeable"] - path = lib/openzeppelin-contracts-upgradeable - url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable [submodule "lib/openzeppelin-contracts"] path = lib/openzeppelin-contracts url = https://github.com/OpenZeppelin/openzeppelin-contracts diff --git a/lib/openzeppelin-contracts-upgradeable b/lib/openzeppelin-contracts-upgradeable deleted file mode 160000 index 3d4c0d5..0000000 --- a/lib/openzeppelin-contracts-upgradeable +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3d4c0d5741b131c231e558d7a6213392ab3672a5 diff --git a/src/IPizza.sol b/src/IPizza.sol index a9fc8cd..ea9821f 100644 --- a/src/IPizza.sol +++ b/src/IPizza.sol @@ -1,8 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.23; -import {PaymentSplitterUpgradeable} from "openzeppelin-contracts-upgradeable/finance/PaymentSplitterUpgradeable.sol"; -import {Initializable} from "openzeppelin-contracts-upgradeable/proxy/utils/Initializable.sol"; +import {Initializable} from "openzeppelin-contracts/proxy/utils/Initializable.sol"; interface IPizza { function initialize(address[] memory _payees, uint256[] memory _shares) external; diff --git a/test/PizzaFactory.t.sol b/test/PizzaFactory.t.sol index bfb49cb..b9cd219 100644 --- a/test/PizzaFactory.t.sol +++ b/test/PizzaFactory.t.sol @@ -1,15 +1,16 @@ // SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.13; +pragma solidity 0.8.23; import {Test, console2} from "forge-std/Test.sol"; import {PizzaFactory, PizzaCreated} from "../src/PizzaFactory.sol"; import {Pizza} from "../src/Pizza.sol"; import {Address} from "openzeppelin-contracts/utils/Address.sol"; import {IERC20} from "openzeppelin-contracts/token/ERC20/IERC20.sol"; +import {Clones} from "openzeppelin-contracts/proxy/Clones.sol"; event PaymentReceived(address from, uint256 amount); -contract CounterTest is Test { +contract PizzaFactoryTest is Test { PizzaFactory public f; address[] payees; uint256[] shares; @@ -47,7 +48,7 @@ contract CounterTest is Test { function test_createDeterministicOnce(uint256 nonce) public { Pizza(payable(address(f.createDeterministic(payees, shares, nonce)))); - vm.expectRevert("ERC1167: create2 failed"); + vm.expectRevert(abi.encodeWithSelector(Clones.ERC1167FailedCreateClone.selector)); f.createDeterministic(payees, shares, nonce); }