From 967f0dc034e836b103d1abbdb316da96c33d4cd9 Mon Sep 17 00:00:00 2001 From: A5 Pickle Date: Wed, 20 Dec 2023 09:51:00 -0600 Subject: [PATCH] evm: uptick solc 0.8.22; fix .gas-snapshot-current --- evm/.gas-snapshot-current | 64 +++++++++---------- evm/forge/scripts/deploy_contracts.sol | 2 +- .../scripts/deploy_implementation_only.sol | 2 +- evm/forge/scripts/deploy_mock_contracts.sol | 2 +- .../scripts/read_governance_variables.sol | 2 +- .../scripts/submit_testnet_registration.sol | 2 +- evm/forge/tests/CircleIntegration.t.sol | 2 +- evm/forge/tests/Governance.t.sol | 2 +- evm/forge/tests/InheritingWormholeCctp.t.sol | 2 +- evm/forge/tests/WormholeCctpMessages.t.sol | 2 +- .../gas/CircleIntegrationComparison.t.sol | 2 +- evm/forge/tests/helpers/IUSDC.sol | 2 +- .../libraries/CircleIntegrationOverride.sol | 2 +- .../helpers/libraries/WormholeOverride.sol | 2 +- .../ComposingWithCircleIntegration.sol | 2 +- .../integrations/InheritingWormholeCctp.sol | 2 +- evm/foundry-test.toml | 2 +- evm/foundry.toml | 2 +- evm/modules/src/WormholeSimulator.sol | 2 +- .../CircleIntegration/Governance.sol | 2 +- .../CircleIntegration/Implementation.sol | 2 +- evm/src/contracts/CircleIntegration/Logic.sol | 2 +- evm/src/contracts/CircleIntegration/Setup.sol | 2 +- evm/src/contracts/CircleIntegration/State.sol | 2 +- .../contracts/CircleIntegration/Storage.sol | 2 +- evm/src/contracts/WormholeCctp.sol | 2 +- evm/src/libraries/BytesParsing.sol | 2 +- evm/src/libraries/Utils.sol | 2 +- evm/src/libraries/WormholeCctpMessages.sol | 2 +- 29 files changed, 60 insertions(+), 60 deletions(-) diff --git a/evm/.gas-snapshot-current b/evm/.gas-snapshot-current index e59859d..3ff0a8c 100644 --- a/evm/.gas-snapshot-current +++ b/evm/.gas-snapshot-current @@ -1,36 +1,36 @@ -CircleIntegrationComparison:test_Composed__RedeemUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 271959, ~: 271835) -CircleIntegrationComparison:test_Composed__TransferUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 393812, ~: 393808) -CircleIntegrationComparison:test_Control__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 73879, ~: 73746) -CircleIntegrationComparison:test_Control__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 211909, ~: 211921) -CircleIntegrationComparison:test_Fork__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 278944, ~: 278895) -CircleIntegrationComparison:test_Fork__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 369996, ~: 369998) -CircleIntegrationComparison:test_Inherited__RedeemUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 230401, ~: 230271) -CircleIntegrationComparison:test_Inherited__TransferUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 345229, ~: 345220) -CircleIntegrationComparison:test_Latest__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 255620, ~: 255666) -CircleIntegrationComparison:test_Latest__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 361165, ~: 361164) +CircleIntegrationComparison:test_Composed__RedeemUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 271983, ~: 271924) +CircleIntegrationComparison:test_Composed__TransferUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 389671, ~: 389667) +CircleIntegrationComparison:test_Control__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 73879, ~: 73749) +CircleIntegrationComparison:test_Control__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 207779, ~: 207783) +CircleIntegrationComparison:test_Fork__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 278942, ~: 278898) +CircleIntegrationComparison:test_Fork__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 365857, ~: 365857) +CircleIntegrationComparison:test_Inherited__RedeemUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 230381, ~: 230322) +CircleIntegrationComparison:test_Inherited__TransferUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 341198, ~: 341198) +CircleIntegrationComparison:test_Latest__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 255627, ~: 255566) +CircleIntegrationComparison:test_Latest__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 357032, ~: 357028) CircleIntegrationTest:test_CannotRedeemTokensWithPayloadCallerMustBeMintRecipient(address) (runs: 256, μ: 76122, ~: 76122) -CircleIntegrationTest:test_CannotRedeemTokensWithPayloadInvalidMessagePair() (gas: 95754) -CircleIntegrationTest:test_CannotRedeemTokensWithPayloadMintTokenNotSupported(bytes32) (runs: 256, μ: 143314, ~: 143314) -CircleIntegrationTest:test_CannotRedeemTokensWithPayloadUnknownEmitter(bytes32) (runs: 256, μ: 206424, ~: 206417) -CircleIntegrationTest:test_CannotTransferTokensWithPayloadInvalidMintRecipient() (gas: 247193) -CircleIntegrationTest:test_CannotTransferTokensWithPayloadInvalidToken() (gas: 250248) -CircleIntegrationTest:test_CannotTransferTokensWithPayloadTargetContractNotRegistered() (gas: 199868) -CircleIntegrationTest:test_CannotTransferTokensWithPayloadZeroAmount() (gas: 55797) -CircleIntegrationTest:test_RedeemTokensWithPayload() (gas: 244194) -CircleIntegrationTest:test_TransferTokensWithPayload(uint256,bytes32) (runs: 256, μ: 491809, ~: 491772) -GovernanceTest:test_CannotConsumeGovernanceMessageInvalidAction(uint8,uint8) (runs: 256, μ: 80055, ~: 80055) -GovernanceTest:test_CannotConsumeGovernanceMessageInvalidGovernanceChainId(uint16,uint8) (runs: 256, μ: 77936, ~: 77936) -GovernanceTest:test_CannotConsumeGovernanceMessageInvalidGovernanceContract(bytes32,uint8) (runs: 256, μ: 77665, ~: 77665) -GovernanceTest:test_CannotConsumeGovernanceMessageInvalidModule(bytes32,uint8) (runs: 256, μ: 79779, ~: 79779) -GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidDomain(uint16,bytes32) (runs: 256, μ: 113833, ~: 113833) -GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidEmitterAddress(uint16,uint32) (runs: 256, μ: 114714, ~: 114714) -GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidForeignChain(bytes32,uint32) (runs: 256, μ: 187311, ~: 187311) +CircleIntegrationTest:test_CannotRedeemTokensWithPayloadInvalidMessagePair() (gas: 95728) +CircleIntegrationTest:test_CannotRedeemTokensWithPayloadMintTokenNotSupported(bytes32) (runs: 256, μ: 143305, ~: 143298) +CircleIntegrationTest:test_CannotRedeemTokensWithPayloadUnknownEmitter(bytes32) (runs: 256, μ: 206423, ~: 206415) +CircleIntegrationTest:test_CannotTransferTokensWithPayloadInvalidMintRecipient() (gas: 243114) +CircleIntegrationTest:test_CannotTransferTokensWithPayloadInvalidToken() (gas: 247595) +CircleIntegrationTest:test_CannotTransferTokensWithPayloadTargetContractNotRegistered() (gas: 195787) +CircleIntegrationTest:test_CannotTransferTokensWithPayloadZeroAmount() (gas: 55800) +CircleIntegrationTest:test_RedeemTokensWithPayload() (gas: 244219) +CircleIntegrationTest:test_TransferTokensWithPayload(uint256,bytes32) (runs: 256, μ: 487769, ~: 487727) +GovernanceTest:test_CannotConsumeGovernanceMessageInvalidAction(uint8,uint8) (runs: 256, μ: 80052, ~: 80052) +GovernanceTest:test_CannotConsumeGovernanceMessageInvalidGovernanceChainId(uint16,uint8) (runs: 256, μ: 77927, ~: 77927) +GovernanceTest:test_CannotConsumeGovernanceMessageInvalidGovernanceContract(bytes32,uint8) (runs: 256, μ: 77662, ~: 77662) +GovernanceTest:test_CannotConsumeGovernanceMessageInvalidModule(bytes32,uint8) (runs: 256, μ: 79776, ~: 79776) +GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidDomain(uint16,bytes32) (runs: 256, μ: 113836, ~: 113836) +GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidEmitterAddress(uint16,uint32) (runs: 256, μ: 114711, ~: 114711) +GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidForeignChain(bytes32,uint32) (runs: 256, μ: 187305, ~: 187305) GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidLength(uint16,bytes32,uint32) (runs: 256, μ: 115441, ~: 115441) -GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidTargetChain(uint16,uint16,bytes32,uint32) (runs: 256, μ: 115162, ~: 115162) -GovernanceTest:test_CannotUpdateWormholeFinalityUnsupportedGovernanceAction(uint8) (runs: 256, μ: 52501, ~: 52501) -GovernanceTest:test_CannotUpgradeContractInvalidImplementation(bytes12,address) (runs: 256, μ: 237166, ~: 237166) -GovernanceTest:test_RegisterEmitterAndDomain(uint16,bytes32,uint32) (runs: 256, μ: 260950, ~: 260950) +GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidTargetChain(uint16,uint16,bytes32,uint32) (runs: 256, μ: 115159, ~: 115159) +GovernanceTest:test_CannotUpdateWormholeFinalityUnsupportedGovernanceAction(uint8) (runs: 256, μ: 52498, ~: 52498) +GovernanceTest:test_CannotUpgradeContractInvalidImplementation(bytes12,address) (runs: 256, μ: 237112, ~: 237112) +GovernanceTest:test_RegisterEmitterAndDomain(uint16,bytes32,uint32) (runs: 256, μ: 260947, ~: 260947) GovernanceTest:test_RegisterEmitterAndDomainNoTarget() (gas: 196350) -GovernanceTest:test_UpgradeContract() (gas: 2387383) -InheritingWormholeCctpTest:test_TransferUsdc(uint256,bytes32) (runs: 256, μ: 364187, ~: 364148) +GovernanceTest:test_UpgradeContract() (gas: 2372528) +InheritingWormholeCctpTest:test_TransferUsdc(uint256,bytes32) (runs: 256, μ: 360180, ~: 360142) MessagesTest:test_DepositWithPayloadSerde(bytes32,uint256,uint32,uint32,uint64,bytes32,bytes32,bytes) (runs: 256, μ: 7871, ~: 7706) \ No newline at end of file diff --git a/evm/forge/scripts/deploy_contracts.sol b/evm/forge/scripts/deploy_contracts.sol index e2c46ed..3673c70 100644 --- a/evm/forge/scripts/deploy_contracts.sol +++ b/evm/forge/scripts/deploy_contracts.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Script.sol"; import "forge-std/console2.sol"; diff --git a/evm/forge/scripts/deploy_implementation_only.sol b/evm/forge/scripts/deploy_implementation_only.sol index d07446a..91af125 100644 --- a/evm/forge/scripts/deploy_implementation_only.sol +++ b/evm/forge/scripts/deploy_implementation_only.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Script.sol"; import "forge-std/console.sol"; diff --git a/evm/forge/scripts/deploy_mock_contracts.sol b/evm/forge/scripts/deploy_mock_contracts.sol index cd4665e..d23f90f 100644 --- a/evm/forge/scripts/deploy_mock_contracts.sol +++ b/evm/forge/scripts/deploy_mock_contracts.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Script.sol"; import "forge-std/console.sol"; diff --git a/evm/forge/scripts/read_governance_variables.sol b/evm/forge/scripts/read_governance_variables.sol index 2530804..08b561d 100644 --- a/evm/forge/scripts/read_governance_variables.sol +++ b/evm/forge/scripts/read_governance_variables.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Script.sol"; import "forge-std/console.sol"; diff --git a/evm/forge/scripts/submit_testnet_registration.sol b/evm/forge/scripts/submit_testnet_registration.sol index 5711032..ab75ac8 100644 --- a/evm/forge/scripts/submit_testnet_registration.sol +++ b/evm/forge/scripts/submit_testnet_registration.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Script.sol"; import "forge-std/console.sol"; diff --git a/evm/forge/tests/CircleIntegration.t.sol b/evm/forge/tests/CircleIntegration.t.sol index a0bd5dc..e7270e0 100644 --- a/evm/forge/tests/CircleIntegration.t.sol +++ b/evm/forge/tests/CircleIntegration.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Test.sol"; import "forge-std/console.sol"; diff --git a/evm/forge/tests/Governance.t.sol b/evm/forge/tests/Governance.t.sol index 049e5c6..ef45522 100644 --- a/evm/forge/tests/Governance.t.sol +++ b/evm/forge/tests/Governance.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Test.sol"; import "forge-std/console.sol"; diff --git a/evm/forge/tests/InheritingWormholeCctp.t.sol b/evm/forge/tests/InheritingWormholeCctp.t.sol index 5a15edf..3f864c4 100644 --- a/evm/forge/tests/InheritingWormholeCctp.t.sol +++ b/evm/forge/tests/InheritingWormholeCctp.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Test.sol"; import "forge-std/console.sol"; diff --git a/evm/forge/tests/WormholeCctpMessages.t.sol b/evm/forge/tests/WormholeCctpMessages.t.sol index c0042d9..97cbedb 100644 --- a/evm/forge/tests/WormholeCctpMessages.t.sol +++ b/evm/forge/tests/WormholeCctpMessages.t.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Test.sol"; import "forge-std/console.sol"; diff --git a/evm/forge/tests/gas/CircleIntegrationComparison.t.sol b/evm/forge/tests/gas/CircleIntegrationComparison.t.sol index a199c7b..8a04df7 100644 --- a/evm/forge/tests/gas/CircleIntegrationComparison.t.sol +++ b/evm/forge/tests/gas/CircleIntegrationComparison.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import "forge-std/Test.sol"; import "forge-std/console.sol"; diff --git a/evm/forge/tests/helpers/IUSDC.sol b/evm/forge/tests/helpers/IUSDC.sol index b2eec0d..557c308 100644 --- a/evm/forge/tests/helpers/IUSDC.sol +++ b/evm/forge/tests/helpers/IUSDC.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; interface IUSDC { function mint(address to, uint256 amount) external; diff --git a/evm/forge/tests/helpers/libraries/CircleIntegrationOverride.sol b/evm/forge/tests/helpers/libraries/CircleIntegrationOverride.sol index a5bb178..37cb729 100644 --- a/evm/forge/tests/helpers/libraries/CircleIntegrationOverride.sol +++ b/evm/forge/tests/helpers/libraries/CircleIntegrationOverride.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {ICircleIntegration} from "src/interfaces/ICircleIntegration.sol"; import {IMessageTransmitter} from "src/interfaces/IMessageTransmitter.sol"; diff --git a/evm/forge/tests/helpers/libraries/WormholeOverride.sol b/evm/forge/tests/helpers/libraries/WormholeOverride.sol index a69d2b7..db09557 100644 --- a/evm/forge/tests/helpers/libraries/WormholeOverride.sol +++ b/evm/forge/tests/helpers/libraries/WormholeOverride.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {IWormhole} from "src/interfaces/IWormhole.sol"; diff --git a/evm/forge/tests/integrations/ComposingWithCircleIntegration.sol b/evm/forge/tests/integrations/ComposingWithCircleIntegration.sol index b399f55..f524981 100644 --- a/evm/forge/tests/integrations/ComposingWithCircleIntegration.sol +++ b/evm/forge/tests/integrations/ComposingWithCircleIntegration.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; diff --git a/evm/forge/tests/integrations/InheritingWormholeCctp.sol b/evm/forge/tests/integrations/InheritingWormholeCctp.sol index 2f8e9c4..4324f40 100644 --- a/evm/forge/tests/integrations/InheritingWormholeCctp.sol +++ b/evm/forge/tests/integrations/InheritingWormholeCctp.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {IWormhole} from "src/interfaces/IWormhole.sol"; diff --git a/evm/foundry-test.toml b/evm/foundry-test.toml index 2e50b8a..fab4846 100644 --- a/evm/foundry-test.toml +++ b/evm/foundry-test.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = "0.8.19" +solc_version = "0.8.22" optimizer = true optimizer_runs = 200 evm_version = "paris" diff --git a/evm/foundry.toml b/evm/foundry.toml index 6d181f9..56ee1f1 100644 --- a/evm/foundry.toml +++ b/evm/foundry.toml @@ -2,7 +2,7 @@ line_length=100 [profile.default] -solc_version = "0.8.19" +solc_version = "0.8.22" optimizer = true optimizer_runs = 200 evm_version = "paris" diff --git a/evm/modules/src/WormholeSimulator.sol b/evm/modules/src/WormholeSimulator.sol index 1a73a06..3e534c6 100644 --- a/evm/modules/src/WormholeSimulator.sol +++ b/evm/modules/src/WormholeSimulator.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {IWormhole} from "src/interfaces/IWormhole.sol"; import {BytesParsing} from "src/libraries/BytesParsing.sol"; diff --git a/evm/src/contracts/CircleIntegration/Governance.sol b/evm/src/contracts/CircleIntegration/Governance.sol index feae57f..8e7ecdf 100644 --- a/evm/src/contracts/CircleIntegration/Governance.sol +++ b/evm/src/contracts/CircleIntegration/Governance.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {ERC1967Upgrade} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol"; diff --git a/evm/src/contracts/CircleIntegration/Implementation.sol b/evm/src/contracts/CircleIntegration/Implementation.sol index f4c80bb..e587c7b 100644 --- a/evm/src/contracts/CircleIntegration/Implementation.sol +++ b/evm/src/contracts/CircleIntegration/Implementation.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {ERC1967Upgrade} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol"; diff --git a/evm/src/contracts/CircleIntegration/Logic.sol b/evm/src/contracts/CircleIntegration/Logic.sol index c0e8b85..f66c867 100644 --- a/evm/src/contracts/CircleIntegration/Logic.sol +++ b/evm/src/contracts/CircleIntegration/Logic.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {IWormhole} from "src/interfaces/IWormhole.sol"; import {IMessageTransmitter} from "src/interfaces/IMessageTransmitter.sol"; diff --git a/evm/src/contracts/CircleIntegration/Setup.sol b/evm/src/contracts/CircleIntegration/Setup.sol index d5546b8..111ab8c 100644 --- a/evm/src/contracts/CircleIntegration/Setup.sol +++ b/evm/src/contracts/CircleIntegration/Setup.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {ERC1967Upgrade} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol"; import {Context} from "@openzeppelin/contracts/utils/Context.sol"; diff --git a/evm/src/contracts/CircleIntegration/State.sol b/evm/src/contracts/CircleIntegration/State.sol index a55531f..0d1aa6e 100644 --- a/evm/src/contracts/CircleIntegration/State.sol +++ b/evm/src/contracts/CircleIntegration/State.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {WormholeCctp} from "src/contracts/WormholeCctp.sol"; diff --git a/evm/src/contracts/CircleIntegration/Storage.sol b/evm/src/contracts/CircleIntegration/Storage.sol index b31ad1b..68380e7 100644 --- a/evm/src/contracts/CircleIntegration/Storage.sol +++ b/evm/src/contracts/CircleIntegration/Storage.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; /** * struct State { diff --git a/evm/src/contracts/WormholeCctp.sol b/evm/src/contracts/WormholeCctp.sol index e7a07b0..cb4b7e4 100644 --- a/evm/src/contracts/WormholeCctp.sol +++ b/evm/src/contracts/WormholeCctp.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; diff --git a/evm/src/libraries/BytesParsing.sol b/evm/src/libraries/BytesParsing.sol index 611515a..a3a9779 100644 --- a/evm/src/libraries/BytesParsing.sol +++ b/evm/src/libraries/BytesParsing.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; library BytesParsing { uint256 private constant freeMemoryPtr = 0x40; diff --git a/evm/src/libraries/Utils.sol b/evm/src/libraries/Utils.sol index a00227f..2752a3e 100644 --- a/evm/src/libraries/Utils.sol +++ b/evm/src/libraries/Utils.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; library Utils { error AddressOverflow(bytes32 addr); diff --git a/evm/src/libraries/WormholeCctpMessages.sol b/evm/src/libraries/WormholeCctpMessages.sol index 24ec34f..6f33b13 100644 --- a/evm/src/libraries/WormholeCctpMessages.sol +++ b/evm/src/libraries/WormholeCctpMessages.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.19; +pragma solidity ^0.8.22; import {IWormhole} from "src/interfaces/IWormhole.sol";