Skip to content

Commit d62883d

Browse files
committed
chore(contracts): upgrade solidity ver to 0.8.20
WIN-666
1 parent 47976e3 commit d62883d

36 files changed

+923
-373
lines changed

.github/workflows/deploy_and_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Use Node.js
5050
uses: actions/setup-node@v3
5151
with:
52-
node-version: 14.x
52+
node-version: 16.x
5353
cache: 'npm'
5454
- run: npm install
5555
- run: npm run deploy-test --network ${{ needs.get-network.outputs.network }}
@@ -98,7 +98,7 @@ jobs:
9898
- name: Use Node.js
9999
uses: actions/setup-node@v3
100100
with:
101-
node-version: 14.x
101+
node-version: 16.x
102102
cache: 'npm'
103103
- run: npm install
104104
- run: npm run deploy-prod --network ${{ needs.get-network.outputs.network }}

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node-version: [14.x]
16+
node-version: [16.x]
1717
steps:
1818
- uses: actions/checkout@v3
1919
- name: Use Node.js ${{ matrix.node-version }}

.solhint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"rules": {
55
"func-visibility": ["warn", { "ignoreConstructors": true }],
66
"avoid-low-level-calls": "off",
7-
"compiler-version": ["error", "0.8.10"],
7+
"compiler-version": ["error", "0.8.20"],
88
"const-name-snakecase": "off",
99
"not-rely-on-time": "off",
1010
"quotes": ["error", "single"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Transfer batcher. Takes a list of recipients and amounts, and distributes ETH to
7474

7575
## Installation
7676

77-
NodeJS 14 is required.
77+
NodeJS 16 is required.
7878

7979
```shell
8080
yarn

contracts/Batcher.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity 0.8.10;
1+
pragma solidity 0.8.20;
22

33
// SPDX-License-Identifier: Apache-2.0
44

contracts/CloneFactory.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// from https://github.com/optionality/clone-factory
3-
pragma solidity 0.8.10;
3+
pragma solidity 0.8.20;
44

55
/*
66
The MIT License (MIT)

contracts/ERC20Interface.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: UNLICENSED
2-
pragma solidity 0.8.10;
2+
pragma solidity 0.8.20;
33

44
/**
55
* Contract that exposes the needed erc20 token functions
@@ -15,7 +15,7 @@ abstract contract ERC20Interface {
1515
// Get the account balance of another account with address _owner
1616
function balanceOf(address _owner)
1717
public
18-
virtual
1918
view
19+
virtual
2020
returns (uint256 balance);
2121
}

contracts/Forwarder.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: Apache-2.0
2-
pragma solidity 0.8.10;
2+
pragma solidity 0.8.20;
33
import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';
44
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
55
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
@@ -52,15 +52,15 @@ contract Forwarder is IERC721Receiver, ERC1155Receiver, IForwarder {
5252
/**
5353
* Modifier that will execute internal code block only if the sender is the parent address
5454
*/
55-
modifier onlyParent {
55+
modifier onlyParent() {
5656
require(msg.sender == parentAddress, 'Only Parent');
5757
_;
5858
}
5959

6060
/**
6161
* Modifier that will execute internal code block only if the contract has not been initialized yet
6262
*/
63-
modifier onlyUninitialized {
63+
modifier onlyUninitialized() {
6464
require(parentAddress == address(0x0), 'Already initialized');
6565
_;
6666
}
@@ -313,9 +313,9 @@ contract Forwarder is IERC721Receiver, ERC1155Receiver, IForwarder {
313313
*/
314314
function supportsInterface(bytes4 interfaceId)
315315
public
316+
view
316317
virtual
317318
override(ERC1155Receiver, IERC165)
318-
view
319319
returns (bool)
320320
{
321321
return

contracts/ForwarderFactory.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: Apache-2.0
2-
pragma solidity 0.8.10;
2+
pragma solidity 0.8.20;
33
import './Forwarder.sol';
44
import './CloneFactory.sol';
55

contracts/IForwarder.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
pragma solidity ^0.8.0;
1+
// SPDX-License-Identifier: Apache-2.0
2+
pragma solidity 0.8.20;
23

34
import '@openzeppelin/contracts/utils/introspection/IERC165.sol';
45

0 commit comments

Comments
 (0)