-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"deal" does not works with Circle USDC #7137
Comments
cc @klkvr |
circle usd packs blacklist and balance, like aave token does with delegation. Not sure if relevant, but the people behind evm.storage open sourced their rust based storage layout extractor: https://github.com/smlxl/storage-layout-extractor which seems to work quite well with structs - which i think will not help in case of USDC, but perhaps in others 😅 . |
Fixed in forge-std 1.8.0 |
deal still doesn't work for USDC. I get this error when trying to deal USDC Tried dealing USDT and it works perfectly but USDC fails |
You may need update |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (3cdee82 2024-02-15T00:19:38.655803000Z)
What command(s) is the bug in?
ARB_RPC_URL=<your_rpc_url> forge test -vvv
Operating System
macOS (Apple Silicon)
Describe the bug
When using 'deal' with Circle USDC, it will fail with the following error:
[FAIL. Reason: revert: stdStorage find(StdStorage): Slot(s) not found.] test_dealUsdc() (gas: 150179)
minimul repro
I believe the reason is the implementation of 'balanceOf' in Circle USDC. It has a little trick to handle the blacklist, where the last bit is used as a flag.
Circle USDC implementation
The text was updated successfully, but these errors were encountered: