Skip to content

Commit 2ee45d3

Browse files
committed
statechannels: bump nitro and remove version change in build script
1 parent 258c44b commit 2ee45d3

File tree

5 files changed

+15
-29
lines changed

5 files changed

+15
-29
lines changed

contracts/statechannels/GRTAssetHolder.sol

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
pragma solidity ^0.6.12;
1+
// SPDX-License-Identifier: MIT
2+
3+
pragma solidity ^0.7.3;
24
pragma experimental ABIEncoderV2;
35

6+
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
47
import "@statechannels/nitro-protocol/contracts/ERC20AssetHolder.sol";
58

69
import "../governance/IController.sol";
@@ -14,9 +17,9 @@ contract GRTAssetHolder is ERC20AssetHolder {
1417

1518
constructor(
1619
address _AdjudicatorAddress,
17-
address _TokenAddress,
20+
IERC20 _TokenAddress,
1821
IController _Controller
19-
) public ERC20AssetHolder(_AdjudicatorAddress, _TokenAddress) {
22+
) ERC20AssetHolder(_AdjudicatorAddress, _TokenAddress) {
2023
AdjudicatorAddress = _AdjudicatorAddress;
2124
Controller = _Controller;
2225
}

hardhat.config.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,7 @@ const config = {
126126
solidity: {
127127
compilers: [
128128
{
129-
version: '0.7.3',
130-
settings: {
131-
optimizer: {
132-
enabled: true,
133-
runs: 200,
134-
},
135-
},
136-
},
137-
{
138-
version: '0.6.12',
129+
version: '0.7.4',
139130
settings: {
140131
optimizer: {
141132
enabled: true,

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@nomiclabs/hardhat-etherscan": "^2.0.0",
2424
"@nomiclabs/hardhat-waffle": "^2.0.0",
2525
"@openzeppelin/contracts": "^3.2.1-solc-0.7",
26-
"@statechannels/nitro-protocol": "^0.7.1-next.534a803ee.74",
26+
"@statechannels/nitro-protocol": "^0.11.2",
2727
"@tenderly/hardhat-tenderly": "^1.0.3",
2828
"@typechain/ethers-v5": "^1.0.0",
2929
"@types/bs58": "^4.0.1",

scripts/build

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,5 @@
22

33
set -eo pipefail
44

5-
# Allow these interfaces to be used from 0.6.x and 0.7.x contracts
6-
sed -i='' 's/pragma solidity ^0.7.0/pragma solidity >=0.6.0 <0.8.0/g' node_modules/@openzeppelin/contracts/math/SafeMath.sol
7-
sed -i='' 's/pragma solidity ^0.7.0/pragma solidity >=0.6.0 <0.8.0/g' node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol
8-
sed -i='' 's/pragma solidity ^0.7.0/pragma solidity >=0.6.0 <0.8.0/g' node_modules/@openzeppelin/contracts/cryptography/ECDSA.sol
9-
10-
# Compile AttestationApp along with the rest of the contracts
11-
cp node_modules/@graphprotocol/statechannels/contracts/Attestation*.sol contracts/statechannels
12-
135
# Build
146
npm run compile

0 commit comments

Comments
 (0)