Skip to content

Commit bd0a26a

Browse files
authored
Update README.md
1 parent b8de0ab commit bd0a26a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,20 @@ Provides utilities for invariant testing
3131
## [Panic](https://github.com/Recon-Fuzz/setup-helpers/blob/main/src/Panic.sol)
3232
A library that provides named variables corresponding to compiler panic messages. Used to more easily access these messages when using the `checkError` utility.
3333

34+
```solidity
35+
library Panic {
36+
// compiler panics
37+
string constant assertionPanic = "Panic(1)";
38+
string constant arithmeticPanic = "Panic(17)";
39+
string constant divisionPanic = "Panic(18)";
40+
string constant enumPanic = "Panic(33)";
41+
string constant arrayPanic = "Panic(34)";
42+
string constant emptyArrayPanic = "Panic(49)";
43+
string constant outOfBoundsPanic = "Panic(50)";
44+
string constant memoryPanic = "Panic(65)";
45+
string constant functionPanic = "Panic(81)";
46+
}
47+
```
48+
3449
## [MockERC20](https://github.com/Recon-Fuzz/setup-helpers/blob/main/src/MockERC20.sol)
3550
A minimal `MockERC20` contract that lets you mock any standard ERC20 tokens that will be interacting with the system without requiring external dependencies.

0 commit comments

Comments
 (0)