book
book copied to clipboard
A book on all things Foundry, available at https://book.getfoundry.sh.
`forge create --libraries` tag on contract deployment throws error when linking multiple libraries. Not sure if lacking proper documentation showing the proper approach, or just a bug. Either way, as...
I totally understand if this feels repetitive since I also wrote the CREATE2 article, but I genuinely feel there are nuances that justify writing a tutorial on CREATE3, since there...
Documents for `assertNotEq` is missed in `DSTest Reference` https://book.getfoundry.sh/reference/ds-test?highlight=assert#asserting
Loading an environment variable should handle private keys if private key is or isn't prefixed by "0x", indicating that its a hexadecimal. `vm.envUint("PRIVATE_KEY");` should handle prefixing it.
The chapter on invariant tests, [Link](https://book.getfoundry.sh/forge/invariant-testing]) ends with the following block of code explaining how the actors are fuzzed. ```// Unbounded function deposit( uint256 assets, uint256 actorIndexSeed ) public virtual...
ref https://github.com/foundry-rs/foundry/issues/5985 ## TODO * add additional working example * make existing example work in the same block by manually setting the nonce * make existing example work on the...
I have a script like this: ``` forge script scripts/DeployFromDeployer.s.sol:Deploy --fork-url ${RPC_URL} --broadcast -vvvv ``` can I pass --constructor-args in a script? Or any args at all? I couldn't find...
Ref https://github.com/foundry-rs/foundry/pull/5830 Ref https://github.com/foundry-rs/forge-std/pull/456 don't merge yet since still wip (old docs), just wanted to share for initial feedback since might change the api a bit! edit: other addition might...
Providing an example of how to use the CREATE2 deployer proxy
Tracking issue for the ongoing book revamp. ### New tutorials - [ ] Making an ERC20 with Foundry - [ ] Deploying a proxy with Foundry - [ ] "Your...