Skip to content

Commit 6fc8a6a

Browse files
authored
Update README.md
1 parent 8f3e6c9 commit 6fc8a6a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,25 @@ find discrepancies between the coverage report and your suite's behavior, please
1616

1717
### Install
1818
```
19-
$ npm install --save-dev solidity-coverage // Post-Byzantium fork, testrpc >= 6.0.1
19+
$ npm install --save-dev solidity-coverage // Testrpc >= 6.0.1, pragma >= 0.5.0
20+
21+
$ npm install --save-dev [email protected] // Testrpc >= 6.0.1, pragma < 0.5.0
2022
2123
$ npm install --save-dev [email protected] // Pre-Byzantium fork, testrpc ~ 4.0.0
2224
```
2325

24-
**Important:** `v0.4.0` targets `solidity >= pragma 0.4.18` and introduces a breaking
26+
**Important:** `v0.4.0` targets `solidity >= pragma 0.5.0` and (temporarily) introduces a breaking
2527
change for projects that rely on Truffle's simplified contract method interface. All `constant`
26-
`view` or `pure` methods now need to be explicitly invoked using `.call`. e.g:
28+
`view` or `pure` methods will need to be explicitly invoked using `.call`. e.g:
2729
```
2830
myMethod.getViewValue(param) // Old way
2931
myMethod.getViewValue.call(param) // New way
3032
```
3133
Methods invoked the old way will return a transaction object instead of a value when run under coverage.
3234
See [issue #146](https://github.com/sc-forks/solidity-coverage/issues/146#issuecomment-342781441) for a more
3335
detailed explanation. `0.3.5` is an intermediate release that contains the Byzantium
34-
fork upgrade but does not require other code changes as long as your pragma is `<= 0.4.17`.
36+
fork upgrade but does not require other code changes as long as your pragma is `<= 0.4.17` and you invoke `pure`
37+
methods using the `.call` postfix.
3538

3639
### Run
3740
```

0 commit comments

Comments
 (0)