forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: publish immutables layout (vyperlang#2768)
add immutables layout to -f layout. this is a breaking change to the `layout` output, since it adds a top-level key to distinguish between storage and immutable variables. this also blocks immutables from colliding with storage variables. immutables could have the same name as storage variables, depending on the order they occur in. for instance, this was allowed ``` x: uint256 x: immutable(uint256) ``` but, this was not: ``` x: immutable(uint256) x: uint256 ``` this commit ensures both cases are blocked.
- Loading branch information
1 parent
df29609
commit d366899
Showing
4 changed files
with
70 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters