Skip to content

Commit

Permalink
Merge pull request #31 from KintoXYZ/bump-solc
Browse files Browse the repository at this point in the history
chore: bump solc version to 0.8.23
  • Loading branch information
fedealconada authored Jan 8, 2024
2 parents a1f1cb4 + cdcbb51 commit d40234e
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 19 deletions.
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.17"
solc = "0.8.23"
src = 'src'
out = 'out'
libs = ['lib']
Expand Down
2 changes: 1 addition & 1 deletion src/ETHPriceIsRight.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/Faucet.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/KintoID.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IKYCViewer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.12;
pragma solidity ^0.8.23;

import "./IKintoID.sol";
import "./IKintoWalletFactory.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/ByteSignature.sol
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/paymasters/SponsorPaymaster.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
pragma solidity ^0.8.23;

/* solhint-disable reason-string */

Expand Down
2 changes: 1 addition & 1 deletion src/proxy/SafeBeaconProxy.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/sample/Counter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
pragma solidity ^0.8.23;

contract Counter {
uint256 public count;
Expand Down
2 changes: 1 addition & 1 deletion src/tokens/EngenCredits.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/viewers/KYCViewer.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/KintoWallet.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/KintoWalletFactory.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion test/DeployTests.t.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion test/EngenCredits.t.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 1 addition & 3 deletions test/KintoWallet.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,8 @@ contract KintoWalletTest is AATestScaffolding, UserOp {
Counter counter = new Counter();
assertEq(counter.count(), 0);

// sender prefunds the contract
// prefund wallet
vm.deal(address(_kintoWalletv1), 1 ether);
vm.prank(address(_kintoWalletv1));
payable(address(counter)).call{value: 1 ether}("");

UserOperation[] memory userOps = new UserOperation[](2);

Expand Down
2 changes: 1 addition & 1 deletion test/SponsorPaymastExploit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d40234e

Please sign in to comment.