Foundry
A place to ask questions and share tips/tricks for using Foundry.
zerosnacks.eth pfp

@zerosnacks

As preparation for Foundry's upcoming v1.1 release, please try out the new release candidate 😀 $ foundryup -i rc https://github.com/foundry-rs/foundry/releases/tag/rc
0 reply
0 recast
4 reactions

Shushant pfp

@0xshushant.eth

Fun fact: All of /definitive $EDGE contract addresses were mined using `cast create2 ` on foundry :) - Token: 0xED6E000dEF95780fb89734c07EE2ce9F6dcAf110 - Staking: 0xdefed6eE363Cc984756566726073ed4d0BC68bde - Airdrop: 0xA12d20Fd3d9188300B1460952b2B57C7384d1B69
1 reply
0 recast
2 reactions

Greg pfp

@greg

Am I missing something or is there no way to verify multichain deployments in a single forge command?
3 replies
0 recast
3 reactions

zerosnacks.eth pfp

@zerosnacks

Reminder! https://x.com/zerosnacks/status/1902791950928900599?s=46
0 reply
0 recast
3 reactions

zerosnacks.eth pfp

@zerosnacks

gm! You may be looking for the 1.0 migration guide if you are experiencing CI failures this morning. 1.0 has now been marked as stable and is installed by default with the Foundry Toolchain. https://book.getfoundry.sh/guides/v1.0-migration
0 reply
17 recasts
4 reactions

zerosnacks.eth pfp

@zerosnacks

FOUNDRY 1.0 IS HERE https://www.paradigm.xyz/2025/02/announcing-foundry-v1-0
0 reply
60 recasts
12 reactions

emo.eth pfp

@emo.eth

before i roll my own: does anybody have any good permit2 fixtures (signing, etc) for foundry tests?
0 reply
0 recast
0 reaction

zerosnacks.eth pfp

@zerosnacks

Improved docs for multichain scripting ✨ https://book.getfoundry.sh/forge/deploying#multi-chain-deployments
0 reply
1 recast
2 reactions

emo.eth pfp

@emo.eth

`forge build` should include "loading screen tips" for smart contract best-practices
1 reply
1 recast
9 reactions

zerosnacks.eth pfp

@zerosnacks

Easy to miss if you are ahead of the curve and already experimenting with EIP-7702 Set your `evm_version` to `prague` For Anvil pass `--hardfork prague` Alternatively you can pass the `--odyssey` flag when running commands https://book.getfoundry.sh/reference/config/solidity-compiler#evm_version
0 reply
1 recast
1 reaction

shazow pfp

@shazow.eth

If you're using foundry with nix, we just added a `stable` branch to your fav foundry nix flake to match the new stable release stream. $ nix run github:shazow/foundry.nix/stable (Default branch is nightly which has ephemeral builds, we also have a /monthly branch which is non-ephemeral nightlies once per month.)
1 reply
1 recast
5 reactions

zerosnacks.eth pfp

@zerosnacks

For all our latest updates and action items please check out the announcements page of the Foundry book to stay up to date https://book.getfoundry.sh/announcements
1 reply
2 recasts
17 reactions

emo.eth pfp

@emo.eth

are forge/cast still bad at estimating gas for arbitrum?
1 reply
1 recast
0 reaction

zerosnacks.eth pfp

@zerosnacks

Reminder: if you recently updated Foundry and your build starts breaking with stack too deep set `optimizer = true` in your foundry.toml We’ve recently stopped enabling the optimizer by default and now require you to enable it explicitly https://github.com/foundry-rs/foundry/issues/2486
0 reply
2 recasts
4 reactions

Henry pfp

@hlau

Is there a trick to get forge test traces to recognize external libraries? Our libraries haven’t been verified yet.
1 reply
0 recast
1 reaction