From e98b425999cd6e4adbe84f7f39c66899b19b7350 Mon Sep 17 00:00:00 2001 From: kopy-kat Date: Wed, 30 Oct 2024 10:42:13 +0700 Subject: [PATCH] feat: reduce solc version --- src/Simulator.sol | 2 +- src/SpecsParser.sol | 2 +- src/lib/ERC4337.sol | 2 +- src/lib/Vm.sol | 2 +- test/Simulator.t.sol | 2 +- test/SimulatorV060.t.sol | 2 +- test/specs-parser/EntryPoint.t.sol | 2 +- test/specs-parser/Opcodes.t.sol | 2 +- test/specs-parser/Precompile.t.sol | 2 +- test/specs-parser/Storage.t.sol | 2 +- test/specs-parser/mocks/OpcodeValidator.sol | 2 +- test/specs-parser/mocks/StorageValidator.sol | 2 +- test/specs-parser/mocks/TargetValidator.sol | 2 +- test/utils/IValidator.sol | 2 +- test/utils/MockAccount.sol | 2 +- test/utils/MockFactory.sol | 2 +- test/utils/MockTargetAccount.sol | 2 +- test/utils/MockValidator.sol | 2 +- test/utils/TestBaseUtil.sol | 2 +- test/utils/TestBaseUtilV060.sol | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/Simulator.sol b/src/Simulator.sol index ca09e75..f72b0bb 100644 --- a/src/Simulator.sol +++ b/src/Simulator.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { PackedUserOperation, diff --git a/src/SpecsParser.sol b/src/SpecsParser.sol index 7312515..6ba045f 100644 --- a/src/SpecsParser.sol +++ b/src/SpecsParser.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { IEntryPoint, diff --git a/src/lib/ERC4337.sol b/src/lib/ERC4337.sol index cdc0aab..098c429 100644 --- a/src/lib/ERC4337.sol +++ b/src/lib/ERC4337.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; // ERC-4337 v0.7 imports import { PackedUserOperation } from "account-abstraction/interfaces/PackedUserOperation.sol"; diff --git a/src/lib/Vm.sol b/src/lib/Vm.sol index 682d2f3..1776949 100644 --- a/src/lib/Vm.sol +++ b/src/lib/Vm.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { Vm, VmSafe } from "forge-std/Vm.sol"; diff --git a/test/Simulator.t.sol b/test/Simulator.t.sol index e24a9c6..e58e045 100644 --- a/test/Simulator.t.sol +++ b/test/Simulator.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { TestBaseUtil, PackedUserOperation } from "test/utils/TestBaseUtil.sol"; import { MockValidator } from "test/utils/MockValidator.sol"; diff --git a/test/SimulatorV060.t.sol b/test/SimulatorV060.t.sol index 018f168..a00ebd2 100644 --- a/test/SimulatorV060.t.sol +++ b/test/SimulatorV060.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { TestBaseUtil, UserOperation } from "test/utils/TestBaseUtilV060.sol"; import { MockValidator } from "test/utils/MockValidator.sol"; diff --git a/test/specs-parser/EntryPoint.t.sol b/test/specs-parser/EntryPoint.t.sol index 439aee4..c462110 100644 --- a/test/specs-parser/EntryPoint.t.sol +++ b/test/specs-parser/EntryPoint.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { TestBaseUtil } from "test/utils/TestBaseUtil.sol"; import { TargetValidator } from "test/specs-parser/mocks/TargetValidator.sol"; diff --git a/test/specs-parser/Opcodes.t.sol b/test/specs-parser/Opcodes.t.sol index 7971cdc..4b7d0b0 100644 --- a/test/specs-parser/Opcodes.t.sol +++ b/test/specs-parser/Opcodes.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { TestBaseUtil } from "test/utils/TestBaseUtil.sol"; import { ERC4337SpecsParser } from "src/SpecsParser.sol"; diff --git a/test/specs-parser/Precompile.t.sol b/test/specs-parser/Precompile.t.sol index ca95972..0c1a69a 100644 --- a/test/specs-parser/Precompile.t.sol +++ b/test/specs-parser/Precompile.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { TestBaseUtil } from "test/utils/TestBaseUtil.sol"; import { TargetValidator } from "test/specs-parser/mocks/TargetValidator.sol"; diff --git a/test/specs-parser/Storage.t.sol b/test/specs-parser/Storage.t.sol index 97113d7..4e3b29a 100644 --- a/test/specs-parser/Storage.t.sol +++ b/test/specs-parser/Storage.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { TestBaseUtil } from "test/utils/TestBaseUtil.sol"; import { StorageValidator } from "test/specs-parser/mocks/StorageValidator.sol"; diff --git a/test/specs-parser/mocks/OpcodeValidator.sol b/test/specs-parser/mocks/OpcodeValidator.sol index bfcf173..cdc708d 100644 --- a/test/specs-parser/mocks/OpcodeValidator.sol +++ b/test/specs-parser/mocks/OpcodeValidator.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { PackedUserOperation, UserOperation } from "src/lib/ERC4337.sol"; import { IValidator } from "test/utils/IValidator.sol"; diff --git a/test/specs-parser/mocks/StorageValidator.sol b/test/specs-parser/mocks/StorageValidator.sol index b969f89..7f4eb04 100644 --- a/test/specs-parser/mocks/StorageValidator.sol +++ b/test/specs-parser/mocks/StorageValidator.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { PackedUserOperation, UserOperation } from "src/lib/ERC4337.sol"; import { IValidator } from "test/utils/IValidator.sol"; diff --git a/test/specs-parser/mocks/TargetValidator.sol b/test/specs-parser/mocks/TargetValidator.sol index f8ba34b..4357ef2 100644 --- a/test/specs-parser/mocks/TargetValidator.sol +++ b/test/specs-parser/mocks/TargetValidator.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { PackedUserOperation, UserOperation } from "src/lib/ERC4337.sol"; diff --git a/test/utils/IValidator.sol b/test/utils/IValidator.sol index afe1f29..1d441ed 100644 --- a/test/utils/IValidator.sol +++ b/test/utils/IValidator.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { PackedUserOperation, UserOperation } from "src/lib/ERC4337.sol"; diff --git a/test/utils/MockAccount.sol b/test/utils/MockAccount.sol index 2d02e7c..f4ca746 100644 --- a/test/utils/MockAccount.sol +++ b/test/utils/MockAccount.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { PackedUserOperation, UserOperation } from "src/lib/ERC4337.sol"; import { IValidator } from "./IValidator.sol"; diff --git a/test/utils/MockFactory.sol b/test/utils/MockFactory.sol index a2b52ba..a93cff8 100644 --- a/test/utils/MockFactory.sol +++ b/test/utils/MockFactory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { LibClone } from "solady/src/utils/LibClone.sol"; diff --git a/test/utils/MockTargetAccount.sol b/test/utils/MockTargetAccount.sol index 9b32269..2f4e21e 100644 --- a/test/utils/MockTargetAccount.sol +++ b/test/utils/MockTargetAccount.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { PackedUserOperation, UserOperation } from "src/lib/ERC4337.sol"; diff --git a/test/utils/MockValidator.sol b/test/utils/MockValidator.sol index 4263c8a..af6f505 100644 --- a/test/utils/MockValidator.sol +++ b/test/utils/MockValidator.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import { PackedUserOperation, UserOperation } from "src/lib/ERC4337.sol"; import { IValidator } from "test/utils/IValidator.sol"; diff --git a/test/utils/TestBaseUtil.sol b/test/utils/TestBaseUtil.sol index bcff1b8..ba64deb 100644 --- a/test/utils/TestBaseUtil.sol +++ b/test/utils/TestBaseUtil.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import "forge-std/Test.sol"; import { MockAccount } from "./MockAccount.sol"; diff --git a/test/utils/TestBaseUtilV060.sol b/test/utils/TestBaseUtilV060.sol index bc96018..9e984c0 100644 --- a/test/utils/TestBaseUtilV060.sol +++ b/test/utils/TestBaseUtilV060.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.0; import "forge-std/Test.sol"; import { MockAccount } from "./MockAccount.sol";