Skip to content

Commit

Permalink
re:add example
Browse files Browse the repository at this point in the history
  • Loading branch information
Evalir committed Oct 25, 2023
1 parent ed6caf0 commit c07d30e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cheatcodes/deal.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ vm.deal(alice, 1 ether);
log_uint256(alice.balance); // 1000000000000000000
```

```solidity
address alice = makeAddr("alice");
emit log_address(alice);
deal(address(DAI), alice, 1 ether); // import StdUtils.sol first
log_uint256(address(DAI).balanceOf(alice)); // 1000000000000000000
```

### SEE ALSO

Forge Standard Library
Expand Down

0 comments on commit c07d30e

Please sign in to comment.