Skip to content

Commit cdeb5aa

Browse files
authored
Merge pull request #324 from crytic/fix-delegatecall-coverage
Removed note about delegatecall lack of coverage
2 parents 0755d3a + 752aefa commit cdeb5aa

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

program-analysis/echidna/advanced/working-with-libraries.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,6 @@ We can use the coverage report to verify that function using the library (`getBa
6060
30 | | }
6161
```
6262

63-
However, the code of the library itself will not have their coverage displayed correctly:
64-
65-
```
66-
6 | | library ConvertLib{
67-
7 | | function convert(uint amount, uint conversionRate) public pure returns (uint convertedAmount)
68-
8 | | {
69-
9 | | return amount * conversionRate;
70-
10 | | }
71-
11 | | }
72-
```
73-
74-
This is caused by the usage of `delegatecall` to execute contract code and [unfortunately we do not have a workaround for it right now](https://github.com/crytic/echidna/issues/1042).
75-
7663
## Summary
7764

7865
Working with libraries in Echidna is supported. It involves to deploy the library to a particular address using `deployContracts` and then asking `crytic-compile` to link the bytecode with the same address using `--compile-libraries` command line.

0 commit comments

Comments
 (0)