Skip to content

Commit

Permalink
Upgrade to Solidity 0.8.26
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeder committed May 21, 2024
1 parent a6db5ab commit fea24a5
Show file tree
Hide file tree
Showing 24 changed files with 26 additions and 35 deletions.
3 changes: 1 addition & 2 deletions contracts/EAS.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { Address } from "@openzeppelin/contracts/utils/Address.sol";

Expand All @@ -12,7 +12,6 @@ import { ISchemaResolver } from "./resolver/ISchemaResolver.sol";
import {
AccessDenied,
EMPTY_UID,
Signature,
InvalidLength,
NotFound,
NO_EXPIRATION_TIME,
Expand Down
4 changes: 2 additions & 2 deletions contracts/Indexer.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { IEAS, AttestationRequest, AttestationRequestData, Attestation } from "./IEAS.sol";
import { IEAS, Attestation } from "./IEAS.sol";
import { EMPTY_UID, uncheckedInc } from "./Common.sol";
import { Semver } from "./Semver.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/SchemaRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { ISchemaResolver } from "./resolver/ISchemaResolver.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/eip1271/EIP1271Verifier.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { EIP712 } from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import { SignatureChecker } from "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
Expand Down
6 changes: 1 addition & 5 deletions contracts/eip712/proxy/EIP712Proxy.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { EIP712 } from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
Expand All @@ -22,12 +22,8 @@ import {
import {
AttestationRequest,
AttestationRequestData,
DelegatedAttestationRequest,
DelegatedRevocationRequest,
IEAS,
MultiAttestationRequest,
MultiDelegatedAttestationRequest,
MultiDelegatedRevocationRequest,
MultiRevocationRequest,
RevocationRequest,
RevocationRequestData
Expand Down
4 changes: 2 additions & 2 deletions contracts/eip712/proxy/examples/PermissionedEIP712Proxy.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";

Expand All @@ -23,7 +23,7 @@ contract PermissionedEIP712Proxy is EIP712Proxy, Ownable {
/// @dev Creates a new PermissionedEIP712Proxy instance.
/// @param eas The address of the global EAS contract.
/// @param name The user readable name of the signing domain.
constructor(IEAS eas, string memory name) EIP712Proxy(eas, name) {}
constructor(IEAS eas, string memory name) Ownable(msg.sender) EIP712Proxy(eas, name) {}

/// @inheritdoc EIP712Proxy
function attestByDelegation(
Expand Down
2 changes: 1 addition & 1 deletion contracts/resolver/examples/AttestationResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/resolver/examples/AttesterResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/resolver/examples/DataResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/resolver/examples/ExpirationTimeResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/resolver/examples/PayingResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { Address } from "@openzeppelin/contracts/utils/Address.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/resolver/examples/RecipientResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/resolver/examples/RevocationResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/resolver/examples/TokenResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/resolver/examples/ValueResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/tests/TestEAS.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/tests/TestERC20Token.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/tests/TestSchemaResolver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { SchemaResolver } from "../resolver/SchemaResolver.sol";

Expand Down
6 changes: 1 addition & 5 deletions contracts/tests/eip1271/TestEIP1271Signer.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { IERC1271 } from "@openzeppelin/contracts/interfaces/IERC1271.sol";

import { EIP1271Verifier } from "../../eip1271/EIP1271Verifier.sol";

import { Signature, InvalidSignature } from "../../Common.sol";

contract TestEIP1271Signer is IERC1271 {
bytes4 private constant EIP1271_INVALID_MAGIC_VALUE = 0xffffffff;

Expand Down
2 changes: 1 addition & 1 deletion contracts/tests/eip1271/TestEIP1271Verifier.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { EIP1271Verifier } from "../../eip1271/EIP1271Verifier.sol";
import { DelegatedAttestationRequest, DelegatedRevocationRequest } from "../../IEAS.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/tests/eip712/proxy/TestEIP712Proxy.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.26;

import { IEAS } from "../../../IEAS.sol";
import { EIP712Proxy, DelegatedProxyAttestationRequest, DelegatedProxyRevocationRequest } from "../../../eip712/proxy/EIP712Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[profile.default]
solc = "0.8.19"
solc = "0.8.26"
bytecode_hash = "none"
optimizer = true
optimizer_runs = 1000000
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ const config: HardhatUserConfig = {
},

solidity: {
version: '0.8.19',
version: '0.8.26',
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethereum-attestation-service/eas-contracts",
"version": "1.5.0",
"version": "1.7.0",
"description": "Ethereum Attestation Service",
"repository": {
"type": "git",
Expand Down

0 comments on commit fea24a5

Please sign in to comment.