Content pfp
Content
@
0 reply
0 recast
2 reactions

Jem pfp
Jem
@jem
Writing tests with Forge on a new codebase, and two approaches have significantly (IMO) increased readability and simplicity: 1. One function per test file 2. Contract and parameter state altered through modifiers, e.g. ``` function test_foo() external whenParameterIsSet whenAModuleIsInstalled ```
2 replies
0 recast
3 reactions

Giuseppe Rodriguez 📸🎩 pfp
Giuseppe Rodriguez 📸🎩
@gr
Been slowly moving to BTT, the one file per function feels like overkill for smaller checks though https://x.com/paulrberg/status/1682346315806539776?s=46&t=0FLFA-Rcngh6xG6Bfm626g
1 reply
0 recast
0 reaction

Brent Fitzgerald pfp
Brent Fitzgerald
@bf
Interesting! Will try these. Surprised by 1 but curious to see it in practice. And 2 looks so so clean!
0 reply
0 recast
1 reaction