forge-std icon indicating copy to clipboard operation
forge-std copied to clipboard

Forge Standard Library is a collection of helpful contracts for use with forge and foundry. It leverages forge's cheatcodes to make writing tests easier and faster, while improving the UX of cheatcode...

Results 84 forge-std issues
Sort by recently updated
recently updated
newest added

Helper functions that leverage the new `parseJson` cheatcode and enable the user to easily parse `forge script` artifacts. The Structs will probably change a bit, due to the artifacts requiring...

Hi guys, I encountered this error when testing my contract using forge-std. My contract was written in solidity 0.6.9 ``` Compiler run failed lib/forge-std/src/Test.sol:92:9: TypeError: Member "sig" is not available...

Would be nice to have the ability to have tests perform more than 1 tx if needed. Some testing scenarios require this, and using vm.warp or vm.roll/rollFork haven't really worked...

#### Required changes - [ ] Make `makeAddr` and `makeAddrAndKey` `virtual`. - [ ] Relicense **(decided)** - https://github.com/foundry-rs/forge-std/issues/132 #### Proposed changes *See source for description* - [x] Modularize Forge Std...

When a user runs `forge init`, they get a bunch of files from this repository. Presumably, they may end up leaving a bunch of code from this repo in their...

Adds the ability to write to a packed storage slot. The caveats being: 1) Only one slot is read (probably can be lifted in the future but not entirely sure)...

Forge has two cheatcodes for mocking: ```solidity interface Vm { // Mocks a call to an address, returning specified data. // Calldata can either be strict or a partial match,...

### Component forge-std ### Have you ensured that all of these are up to date? - [X] Foundry - [X] Foundryup ### What version of Foundry are you on? forge...

Ref https://github.com/foundry-rs/foundry/issues/1228 The fuzzer will pass precompile addresses to tests. These are valid inputs so we don't want to strip them from the fuzzer, but in some tests they can...

This discussion is contingent on [bumping the pragma to `>=0.8.0