-
Notifications
You must be signed in to change notification settings - Fork 679
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: document allowCheatcodes (#642)
* docs: document allowCheatcodes * Update src/cheatcodes/allow-cheatcodes.md
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## `allowCheatcodes` | ||
|
||
### Signature | ||
|
||
```solidity | ||
function allowCheatcodes(address) external; | ||
``` | ||
|
||
### Description | ||
|
||
In forking mode, explicitly grant the given address cheatcode access. | ||
|
||
By default, the test contract, and its deployer are allowed to access cheatcodes. In addition to that, cheat code | ||
access is granted if the contract was deployed by an address that already has cheatcode access. | ||
This will prevent cheatcode access from accounts already deployed on the forked network. | ||
|
||
> ℹ️ **Note** | ||
> | ||
> This is only useful for complexer test setup in forking mode. |