Skip to content

Commit

Permalink
bump solc to 0.8.21 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfoobar committed Jul 25, 2023
1 parent 4a940c4 commit 86c249a
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 29 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ cache/
out/
broadcast/
Makefile
abi.json
abi.json
.vscode/
10 changes: 0 additions & 10 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
src = 'src'
out = 'out'
libs = ['lib']
solc_version = "0.8.20"
solc_version = "0.8.21"
# EVM version must be Paris not Shanghai to prevent PUSH0 incompatibility with other EVM L1s
# Extra 137 deployment size, extra 0.1% runtime gas costs from using older version
evm_version = "paris"
Expand Down
2 changes: 1 addition & 1 deletion script/Deploy.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {Script} from "forge-std/Script.sol";
import {console2} from "forge-std/console2.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/DelegateRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {IDelegateRegistry as IDelegateRegistry} from "./IDelegateRegistry.sol";
import {RegistryHashes as Hashes} from "./libraries/RegistryHashes.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/examples/Airdrop.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {MerkleProof} from "openzeppelin/utils/cryptography/MerkleProof.sol";
import {ERC20} from "openzeppelin/token/ERC20/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/examples/DelegateClaim.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {IDelegateRegistry} from "src/IDelegateRegistry.sol";
import {Math} from "lib/openzeppelin-contracts/contracts/utils/math/Math.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/examples/IPLicenseCheck.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {IERC721} from "openzeppelin-contracts/contracts/token/ERC721/IERC721.sol";
import {IDelegateRegistry} from "src/IDelegateRegistry.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/RegistryHashes.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {IDelegateRegistry} from "../IDelegateRegistry.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/libraries/RegistryStorage.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

library RegistryStorage {
/// @dev Standardizes storage positions of delegation data
Expand Down
2 changes: 1 addition & 1 deletion test/DelegateRegistry.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {Test} from "forge-std/Test.sol";
import {console2} from "forge-std/console2.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/GasBenchmark.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {Test} from "forge-std/Test.sol";
import {DelegateRegistry as Registry} from "src/DelegateRegistry.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/HashBenchmark.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {Test} from "forge-std/Test.sol";
import {IDelegateRegistry} from "src/IDelegateRegistry.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/RegistryHashTests.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {Test} from "forge-std/Test.sol";
import {console2} from "forge-std/console2.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/RegistrySingularIntegrations.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {Test} from "forge-std/Test.sol";
import {DelegateRegistry as Registry} from "src/DelegateRegistry.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/RegistryStorageTests.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {Test} from "forge-std/Test.sol";
import {console2} from "forge-std/console2.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/RegistryUnitTests.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {Test} from "forge-std/Test.sol";
import {console2} from "forge-std/console2.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/examples/Airdrop.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {Test} from "forge-std/Test.sol";
import {console2} from "forge-std/console2.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/examples/IPLicenseCheck.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

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

Expand Down
2 changes: 1 addition & 1 deletion test/tools/RegistryHarness.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
pragma solidity ^0.8.21;

import {DelegateRegistry} from "src/DelegateRegistry.sol";

Expand Down

0 comments on commit 86c249a

Please sign in to comment.