-
Notifications
You must be signed in to change notification settings - Fork 66
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
Create an id
lib function for memory or storage variables
#144
Comments
Anything that gives integrators (including us in our test suite) the ability to mimick the behavior of the |
I agree that this is something that should be provided, and we could batch similar requests:
|
By the way, have we thought about asking for the market in memory directly in Blue ? |
I just gave it a try, it seems to not increase the gas cost so maybe we are better of doing this |
This highlights that it's mostly a syntax thing, so I'm ok with this. (I understand that under specific conditions, This answers where we'd store an Note that overloading the |
Note that there is a more notable difference between calldata and memory on L2s that we must check as well |
Indeed. And same for calldata actually. But storage and calldata can easily be stored in memory. This is a bit annoying to write dead code.. but not a huge deal neither. |
Originally posted by @Rubilmax in #134 (review)
The
id
helper function cannot be used for storage or memory variable.Aave did the same in their libraries.
The text was updated successfully, but these errors were encountered: