Skip to content

Commit

Permalink
fix: actually document vm.difficulty
Browse files Browse the repository at this point in the history
The cheatcode was referenced in foundry-rs#536 but was not actually
documented...
  • Loading branch information
onbjerg committed Aug 19, 2022
1 parent 9f0d11c commit 515fc80
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/cheatcodes/difficulty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## `difficulty`

### Signature

```solidity
function difficulty(uint256) external;
```

### Description

Sets `block.difficulty`.

### Examples

```solidity
vm.difficulty(25);
emit log_uint(block.difficulty); // 25
```

0 comments on commit 515fc80

Please sign in to comment.