Skip to content

Commit cccc455

Browse files
authored
Update buidler dev deps & recommend using --network (sc-forks#519)
1 parent 2af43a3 commit cccc455

File tree

6 files changed

+199
-98
lines changed

6 files changed

+199
-98
lines changed

BUIDLER_README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Gitter chat](https://badges.gitter.im/sc-forks/solidity-coverage.svg)][18]
2-
![npm (tag)](https://img.shields.io/npm/v/solidity-coverage/beta)
2+
![npm (tag)](https://img.shields.io/npm/v/solidity-coverage/latest)
33
[![CircleCI](https://circleci.com/gh/sc-forks/solidity-coverage.svg?style=svg)][20]
44
[![codecov](https://codecov.io/gh/sc-forks/solidity-coverage/branch/beta/graph/badge.svg)][21]
55
[![buidler](https://buidler.dev/buidler-plugin-badge.svg?1)][26]
@@ -26,14 +26,22 @@ And add the following to your `buidler.config.js`:
2626

2727
```js
2828
usePlugin("solidity-coverage");
29+
30+
module.exports = {
31+
networks: {
32+
coverage: {
33+
url: 'http://localhost:8555'
34+
}
35+
},
36+
}
2937
```
3038

3139
## Tasks
3240

3341
This plugin implements a `coverage` task
3442

3543
```bash
36-
npx buidler coverage [options]
44+
npx buidler coverage --network coverage [options]
3745
```
3846

3947
| Option <img width=200/> | Example <img width=750/>| Description <img width=1000/> |

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@ truffle run coverage [command-options]
4545
usePlugin('solidity-coverage')
4646

4747
module.exports = {
48-
networks: {...},
48+
networks: {
49+
coverage: {
50+
url: 'http://localhost:8555'
51+
}
52+
},
4953
}
5054
```
5155
**Run**
5256
```
53-
npx buidler coverage [command-options]
57+
npx buidler coverage --network coverage [command-options]
5458
```
5559

5660
**Buidler Project Examples:**

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
"web3": "1.2.6"
4545
},
4646
"devDependencies": {
47-
"@nomiclabs/buidler": "^1.1.2",
48-
"@nomiclabs/buidler-truffle5": "^1.1.2",
49-
"@nomiclabs/buidler-web3": "^1.1.2",
47+
"@nomiclabs/buidler": "^1.3.6",
48+
"@nomiclabs/buidler-truffle5": "^1.3.4",
49+
"@nomiclabs/buidler-web3": "^1.3.4",
5050
"@truffle/contract": "^4.0.36",
5151
"buidler-gas-reporter": "^0.1.3",
5252
"decache": "^4.5.1",

scripts/run-netlify.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
set -o errexit
88

99
# Clone target
10+
rm -rf contracts-v1
1011
git clone https://github.com/sc-forks/contracts-v1.git
1112
cd contracts-v1
1213

test/integration/projects/multiple-suites/buidler.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ loadPluginFile(__dirname + "/../plugins/buidler.plugin");
33
usePlugin("@nomiclabs/buidler-truffle5");
44

55
module.exports={
6-
defaultNetwork: "buidlerevm",
6+
networks: {
7+
buidlerevm: {
8+
gasPrice: 2
9+
}
10+
},
711
logger: process.env.SILENT ? { log: () => {} } : console,
812
};

0 commit comments

Comments
 (0)