-
Notifications
You must be signed in to change notification settings - Fork 334
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
Error: Storage Slot not found in dealERC721 #318
Comments
Thanks for the issue, from what I can see in the |
Probably because the NFT is a proxy contract, IIRC StdStorage does not support that currently and requires the slot to be in the |
Indeed, the contract in the poc appears to be using a proxy: I can think of a solution for this type of cases, although not ideal but it would be the only way to fix this without major changes to StdStorage. Basically it'd be pranking the owner and performing a
So this could be implemented as a backup method. But I'm curious to hear your thoughts and opinions on this. |
Ideally we could add proxy support to StdStorage, though I'm not sure offhand how much work that would be. Might not be too bad if we only support standard proxy implementations like EIP-1967 as a fallback if a storage slot couldn't be found normally |
This would be great definitely. I'm not too familiar with how StdStorage works internally, but I can take a look and try to work on this when I have some spare time. |
+1 here. Same issue trying to deal tokens behind a proxy-implementation pattern. |
usually when I deal proxy tokens,
It's worked for me. |
Stumbled on this issue too after a couple of tests started failing when trying to deal mainnet USDC to an address. I've narrowed the root cause down to this commit: fac7bd8 but unsure about the why still. |
Mainnet USDC recently ugpraded and now stored balance in a packed slot, so |
Hey! I am having the same issue! I am on the latest foundry version. Still getting an error like this while dealing Mainnet USDC to an address. [FAIL. Reason: revert: stdStorage find(StdStorage): Slot(s) not found.] Any solution for this? |
Hey! I ran into the same issue and had to manually copy paste StdStorage.sol into my forge-std lib because I think it still clones the older versions. Please fix it. Thanks! It now works correctly! |
Correct, you will need to upgrade your forge-std dependency to the latest release, not just your foundry version |
Can confirm updating |
Getting the following error when using dealERC721 for UniswapV3 LP positions (i.e. NonfungiblePositionManager):
[FAIL. Reason: stdStorage find(StdStorage): Slot(s) not found.]
Seems find() is having a hard time getting the storage slot due to the implementation of EnumerableMaps.
Minimal reproducible repo here.
@wirew0lf
The text was updated successfully, but these errors were encountered: