Skip to content

Commit

Permalink
Merge pull request #152 from ethereum-attestation-service/solidity
Browse files Browse the repository at this point in the history
Upgrade to Solidity 0.8.27
  • Loading branch information
lbeder authored Sep 6, 2024
2 parents b84f183 + f54ca09 commit 558250d
Show file tree
Hide file tree
Showing 25 changed files with 43 additions and 26 deletions.
2 changes: 1 addition & 1 deletion 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.26;
pragma solidity 0.8.27;

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

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

pragma solidity 0.8.26;
pragma solidity 0.8.27;

import { IEAS, Attestation } from "./IEAS.sol";
import { EMPTY_UID, uncheckedInc } from "./Common.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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { EIP712 } from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
Expand Down
2 changes: 1 addition & 1 deletion 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.26;
pragma solidity 0.8.27;

import { EIP712 } from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.26;
pragma solidity 0.8.27;

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

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

import { IEAS, Attestation } from "./../IEAS.sol";
import { SchemaResolver } from "./../resolver/SchemaResolver.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/tests/eip1271/TestEIP1271Signer.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.26;
pragma solidity 0.8.27;

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

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.26;
pragma solidity 0.8.27;

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.26;
pragma solidity 0.8.27;

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.26"
solc = "0.8.27"
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.26',
version: '0.8.27',
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"prettier": "^3.3.3",
"prettier-package-json": "^2.8.0",
"prettier-plugin-solidity": "^1.3.1",
"solc": "0.8.26",
"solc": "0.8.27",
"solhint": "^5.0.3",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
Expand Down
21 changes: 19 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 558250d

Please sign in to comment.