foundry-rs / book

A book on all things Foundry, available at https://book.getfoundry.sh.
https://book.getfoundry.sh
Apache License 2.0
776 stars 609 forks source link

Mentioned deals' erc20 override in stdcheats in cheat reference #1270

Closed krzkaczor closed 1 week ago

krzkaczor commented 2 weeks ago

I think it's a little bit too buried in deal's docs that it actually possible to set erc20 balance.

onbjerg commented 1 week ago

does not belong here, esp since we can't link to it in this section

krzkaczor commented 1 week ago

I think that discoverability of the fact that foundry can set erc20 balances (which is much different than setting simply eth balances from technical pov) is very bad. It's only documented on details of deal cheatcode and I simply couldn't find it.

I know it doesn't fully belong there but as I said, it's totally not obvious that it's possible. Please reconsider -- I don't think it does any harm.