We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28c97ea commit ff50bfaCopy full SHA for ff50bfa
smart_contract/contracts/test/utils/errors.t.sol
@@ -2,17 +2,13 @@
2
pragma solidity ^0.8.0;
3
4
import { stdJson } from 'forge-std/StdJson.sol';
5
-import { Vm } from 'forge-std/Vm.sol';
6
import { Test } from 'forge-std/Test.sol';
7
8
contract Errors is Test {
9
using stdJson for string;
10
11
- Vm public constant vm = Vm(address(uint160(uint256(keccak256('hevm cheat code')))));
12
-
13
mapping(RevertStatus => string) private _errors;
14
15
- // Add a revert error to the enum of errors.
16
enum RevertStatus {
17
SUCCESS,
18
SKIP_VALIDATION,
0 commit comments