Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Rubilmax/viem-deal
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Oct 14, 2024
2 parents d915990 + a6c03fa commit 170ea62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
[![Commitizen Friendly][commitizen-img]][commitizen-url]
[![Semantic Release][semantic-release-img]][semantic-release-url]

Easily deal arbitrary amounts of any ERC20 tokens to any account on any `setStorageAt`-compatible network, including in hardhat or anvil-based forks!
Easily [deal](https://book.getfoundry.sh/cheatcodes/deal) arbitrary amounts of any ERC20 tokens to any account on any `setStorageAt`-compatible network, including in hardhat, tevm, or anvil-based forks!

> NB: `deal` is the name of a cheat code introduced by foundry, which "mints" without actually minting ERC20 tokens - it's overriding the storage of the balance of the given recipient
The storage slot of the mapping `balanceOf` is brute-forced and the given user's balance is manipulated via `setStorageAt`.

Expand Down

0 comments on commit 170ea62

Please sign in to comment.