File tree Expand file tree Collapse file tree 5 files changed +15
-29
lines changed Expand file tree Collapse file tree 5 files changed +15
-29
lines changed Original file line number Diff line number Diff line change 1
- pragma solidity ^ 0.6.12 ;
1
+ // SPDX-License-Identifier: MIT
2
+
3
+ pragma solidity ^ 0.7.3 ;
2
4
pragma experimental ABIEncoderV2;
3
5
6
+ import "@openzeppelin/contracts/token/ERC20/IERC20.sol " ;
4
7
import "@statechannels/nitro-protocol/contracts/ERC20AssetHolder.sol " ;
5
8
6
9
import "../governance/IController.sol " ;
@@ -14,9 +17,9 @@ contract GRTAssetHolder is ERC20AssetHolder {
14
17
15
18
constructor (
16
19
address _AdjudicatorAddress ,
17
- address _TokenAddress ,
20
+ IERC20 _TokenAddress ,
18
21
IController _Controller
19
- ) public ERC20AssetHolder (_AdjudicatorAddress, _TokenAddress) {
22
+ ) ERC20AssetHolder (_AdjudicatorAddress, _TokenAddress) {
20
23
AdjudicatorAddress = _AdjudicatorAddress;
21
24
Controller = _Controller;
22
25
}
Original file line number Diff line number Diff line change @@ -126,16 +126,7 @@ const config = {
126
126
solidity : {
127
127
compilers : [
128
128
{
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' ,
139
130
settings : {
140
131
optimizer : {
141
132
enabled : true ,
Original file line number Diff line number Diff line change 23
23
"@nomiclabs/hardhat-etherscan" : " ^2.0.0" ,
24
24
"@nomiclabs/hardhat-waffle" : " ^2.0.0" ,
25
25
"@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 " ,
27
27
"@tenderly/hardhat-tenderly" : " ^1.0.3" ,
28
28
"@typechain/ethers-v5" : " ^1.0.0" ,
29
29
"@types/bs58" : " ^4.0.1" ,
Original file line number Diff line number Diff line change 2
2
3
3
set -eo pipefail
4
4
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
-
13
5
# Build
14
6
npm run compile
You can’t perform that action at this time.
0 commit comments