Skip to content

Commit

Permalink
build: upgrade to Solidity v0.8.19
Browse files Browse the repository at this point in the history
test: bump pragma in test files
  • Loading branch information
PaulRBerg committed Feb 24, 2023
1 parent 8ce606a commit 4540c63
Show file tree
Hide file tree
Showing 29 changed files with 35 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ useTabs: false
overrides:
- files: "*.sol"
options:
compiler: "0.8.18"
compiler: "0.8.19"
tabWidth: 4
9 changes: 7 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@
bytecode_hash = "none"
cbor_metadata = false
fs_permissions = [{ access = "read", path = "./optimized-out" }]
gas_reports = ["PRBProxy", "PRBProxyFactory", "PRBProxyRegistry"]
gas_reports = [
"PRBProxy",
"PRBProxyHelpers",
"PRBProxyFactory",
"PRBProxyRegistry",
]
ignored_error_codes = [
5159, # ignore selfdestruct warning
]
libs = ["lib"]
optimizer = true
optimizer_runs = 10_000
out = "out"
solc = "0.8.18"
solc = "0.8.19"
src = "src"
test = "test"

Expand Down
2 changes: 1 addition & 1 deletion test/Base.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { ERC20 } from "@prb/contracts/token/erc20/ERC20.sol";
import { IERC20 } from "@prb/contracts/token/erc20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/factory/Factory.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { Base_Test } from "../Base.t.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/factory/deploy-and-execute/deployAndExecute.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/factory/deploy-for/deployFor.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";
import { PRBProxy } from "src/PRBProxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/factory/deploy/deploy.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/factory/version/version.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { Factory_Test } from "../Factory.t.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/Helpers.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxyPlugin } from "src/interfaces/IPRBProxyPlugin.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/set-permission/setPermission.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/version/version.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { Helpers_Test } from "../Helpers.t.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/proxy/execute/execute.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

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

Expand Down
2 changes: 1 addition & 1 deletion test/proxy/receive/receive.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { Proxy_Test } from "../Proxy.t.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/proxy/transfer-ownership/transferOwnership.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/registry/Registry.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { Base_Test } from "../Base.t.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/registry/deploy-and-execute/deployAndExecute.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/registry/deploy-for/deployFor.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";
import { IPRBProxyRegistry } from "src/interfaces/IPRBProxyRegistry.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/registry/deploy/deploy.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/shared/plugins/PluginSelfDestructer.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { IPRBProxyPlugin } from "src/interfaces/IPRBProxyPlugin.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/shared/targets/TargetChangeOwner.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

contract TargetChangeOwner {
address public owner;
Expand Down
2 changes: 1 addition & 1 deletion test/shared/targets/TargetDummy.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

contract TargetDummy {
function foo() external pure returns (string memory) {
Expand Down
2 changes: 1 addition & 1 deletion test/shared/targets/TargetEcho.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

contract TargetEcho {
struct SomeStruct {
Expand Down
2 changes: 1 addition & 1 deletion test/shared/targets/TargetMinGasReserve.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

/// @dev This works because the storage variables are ordered in exactly the same as they are in {PRBProxy}.
contract TargetMinGasReserve {
Expand Down
2 changes: 1 addition & 1 deletion test/shared/targets/TargetPanic.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

contract TargetPanic {
function failedAssertion() external pure {
Expand Down
2 changes: 1 addition & 1 deletion test/shared/targets/TargetReverter.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

contract TargetReverter {
error SomeError();
Expand Down
2 changes: 1 addition & 1 deletion test/shared/targets/TargetSelfDestructer.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

contract TargetSelfDestructer {
function destroyMe(address payable recipient) external {
Expand Down
2 changes: 1 addition & 1 deletion test/storage/Storage.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <=0.9.0;
pragma solidity >=0.8.19 <=0.9.0;

import { Base_Test } from "../Base.t.sol";

Expand Down

0 comments on commit 4540c63

Please sign in to comment.