Skip to content

Commit dca4472

Browse files
committed
feat: update Forge Standard Library
1 parent f14d302 commit dca4472

7 files changed

Lines changed: 546 additions & 481 deletions

File tree

lib/forge-std/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ contract Storage {
165165

166166
### stdCheats
167167

168-
This is a wrapper over miscellaneous cheatcodes that need wrappers to be more dev friendly. Currently there are only functions related to `prank`. In general, users may expect ETH to be put into an address on `prank`, but this is not the case for safety reasons. Explicitly this `hoax` function should only be used for address that have expected balances as it will get overwritten. If an address already has ETH, you should just use `prank`. If you want to change that balance explicitly, just use `deal`. If you want to do both, `hoax` is also right for you.
168+
This is a wrapper over miscellaneous cheatcodes that need wrappers to be more dev friendly. Currently there are only functions related to `prank`. In general, users may expect ETH to be put into an address on `prank`, but this is not the case for safety reasons. Explicitly this `hoax` function should only be used for addresses that have expected balances as it will get overwritten. If an address already has ETH, you should just use `prank`. If you want to change that balance explicitly, just use `deal`. If you want to do both, `hoax` is also right for you.
169169

170170

171171
#### Example usage:

lib/forge-std/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "forge-std",
3-
"version": "1.9.2",
3+
"version": "1.9.3",
44
"description": "Forge Standard Library is a collection of helpful contracts and libraries for use with Forge and Foundry.",
55
"homepage": "https://book.getfoundry.sh/forge/forge-std",
66
"bugs": "https://github.com/foundry-rs/forge-std/issues",

lib/forge-std/src/StdCheats.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ abstract contract StdCheatsSafe {
228228

229229
// Checks that `addr` is not blacklisted by token contracts that have a blacklist.
230230
// This is identical to `assumeNotBlacklisted(address,address)` but with a different name, for
231-
// backwards compatibility, since this name was used in the original PR which has already has
231+
// backwards compatibility, since this name was used in the original PR which already has
232232
// a release. This function can be removed in a future release once we want a breaking change.
233233
function assumeNoBlacklisted(address token, address addr) internal view virtual {
234234
assumeNotBlacklisted(token, addr);

lib/forge-std/src/Vm.sol

Lines changed: 61 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)