deal(address token, address who, uint256 give)
fails with No storage use detected for target
#337
Open
2 tasks done
Labels
cheatcode
Issue with a cheat code against zksync
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.0.2 (532ef5e 2024-04-22T00:21:35.201114596Z)
What command(s) is the bug in?
forge test
Operating System
Linux
Describe the bug
When I attempt to deal ERC20 tokens to an address using
deal(address token, address who, uint256 give)
after forking zkSync Era mainnet, I get the following error and trace (where 0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4 is USDC deployed on zkSync Era):The Solidity code is as follows (note: I get the same error no matter which token I use):
I am using the forge-std library v1.8.0, where
deal
is defined in StdCheats.sol as:The text was updated successfully, but these errors were encountered: