diff --git a/foundry.toml b/foundry.toml index 5ffd160ee..ca24bd427 100644 --- a/foundry.toml +++ b/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc = "0.8.17" +solc = "0.8.23" src = 'src' out = 'out' libs = ['lib'] diff --git a/src/ETHPriceIsRight.sol b/src/ETHPriceIsRight.sol index d6ea1b65c..c54580b4c 100644 --- a/src/ETHPriceIsRight.sol +++ b/src/ETHPriceIsRight.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import {IETHPriceIsRight} from "./interfaces/IETHPriceIsRight.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/src/Faucet.sol b/src/Faucet.sol index fc0c16415..6c8da16a0 100644 --- a/src/Faucet.sol +++ b/src/Faucet.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import {IFaucet} from "./interfaces/IFaucet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/src/KintoID.sol b/src/KintoID.sol index ed75844d2..a3da00c19 100644 --- a/src/KintoID.sol +++ b/src/KintoID.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; /* External Imports */ import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; diff --git a/src/interfaces/IKYCViewer.sol b/src/interfaces/IKYCViewer.sol index fecd31735..28ee928aa 100644 --- a/src/interfaces/IKYCViewer.sol +++ b/src/interfaces/IKYCViewer.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import "./IKintoID.sol"; import "./IKintoWalletFactory.sol"; diff --git a/src/libraries/ByteSignature.sol b/src/libraries/ByteSignature.sol index 9a6a3e1a3..28f3b7238 100644 --- a/src/libraries/ByteSignature.sol +++ b/src/libraries/ByteSignature.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; library ByteSignature { function extractTwoSignatures(bytes memory _fullSignature) diff --git a/src/paymasters/SponsorPaymaster.sol b/src/paymasters/SponsorPaymaster.sol index 06c8e6ddc..1eb062a66 100644 --- a/src/paymasters/SponsorPaymaster.sol +++ b/src/paymasters/SponsorPaymaster.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; /* solhint-disable reason-string */ diff --git a/src/proxy/SafeBeaconProxy.sol b/src/proxy/SafeBeaconProxy.sol index e8a4e8fc5..0edf4ec6c 100644 --- a/src/proxy/SafeBeaconProxy.sol +++ b/src/proxy/SafeBeaconProxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import {UpgradeableBeacon} from "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol"; import {BeaconProxy} from "@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol"; diff --git a/src/sample/Counter.sol b/src/sample/Counter.sol index 0ab7cb927..e60fc639c 100644 --- a/src/sample/Counter.sol +++ b/src/sample/Counter.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; contract Counter { uint256 public count; diff --git a/src/tokens/EngenCredits.sol b/src/tokens/EngenCredits.sol index a628f593f..854fed786 100644 --- a/src/tokens/EngenCredits.sol +++ b/src/tokens/EngenCredits.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol"; diff --git a/src/viewers/KYCViewer.sol b/src/viewers/KYCViewer.sol index 99ee7a03d..1ae6c927a 100644 --- a/src/viewers/KYCViewer.sol +++ b/src/viewers/KYCViewer.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import "@openzeppelin/contracts/utils/Create2.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; diff --git a/src/wallet/KintoWallet.sol b/src/wallet/KintoWallet.sol index ced6dd4d5..b1912b908 100644 --- a/src/wallet/KintoWallet.sol +++ b/src/wallet/KintoWallet.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; diff --git a/src/wallet/KintoWalletFactory.sol b/src/wallet/KintoWalletFactory.sol index 49cdec463..d5a122794 100644 --- a/src/wallet/KintoWalletFactory.sol +++ b/src/wallet/KintoWalletFactory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import "@openzeppelin/contracts/utils/Create2.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; diff --git a/test/DeployTests.t.sol b/test/DeployTests.t.sol index c0da5a16f..2b4bcda19 100644 --- a/test/DeployTests.t.sol +++ b/test/DeployTests.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import "../src/wallet/KintoWallet.sol"; import "../src/wallet/KintoWalletFactory.sol"; diff --git a/test/EngenCredits.t.sol b/test/EngenCredits.t.sol index 5883c9abf..6a5eb8b8d 100644 --- a/test/EngenCredits.t.sol +++ b/test/EngenCredits.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.12; +pragma solidity ^0.8.23; import "../src/tokens/EngenCredits.sol"; import "forge-std/Test.sol"; diff --git a/test/KintoWallet.t.sol b/test/KintoWallet.t.sol index cbf1598a5..aaa421173 100644 --- a/test/KintoWallet.t.sol +++ b/test/KintoWallet.t.sol @@ -187,7 +187,8 @@ contract KintoWalletTest is AATestScaffolding, UserOp { // sender prefunds the contract vm.deal(address(_kintoWalletv1), 1 ether); vm.prank(address(_kintoWalletv1)); - payable(address(counter)).call{value: 1 ether}(""); + (bool success,) = payable(address(counter)).call{value: 1 ether}(""); + assertEq(success, true); UserOperation[] memory userOps = new UserOperation[](2); diff --git a/test/SponsorPaymastExploit.t.sol b/test/SponsorPaymastExploit.t.sol index cf0b7c9f6..fede593e2 100644 --- a/test/SponsorPaymastExploit.t.sol +++ b/test/SponsorPaymastExploit.t.sol @@ -32,7 +32,7 @@ contract MyOpCreator is UserOp, KYCSignature { uint256 value, bytes calldata _bytesOp, address _paymaster - ) public returns (UserOperation memory op) { + ) public view returns (UserOperation memory op) { op = UserOperation({ sender: _account, nonce: nonce,