-
Notifications
You must be signed in to change notification settings - Fork 6.2k
eof: Fix constructor argument copying for EOF #15637
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
eof: Fix constructor argument copying for EOF #15637
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
78146e5
to
ab2af67
Compare
ab2af67
to
1ca4f78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that EOF version should be moved to a member variable. Other than that this looks fine.
test/libsolidity/semanticTests/constructor/base_constructor_arguments.sol
Show resolved
Hide resolved
1ca4f78
to
bc02eb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still a few things to fix regarding passing an EOF version.
But like I said on the chat, I'd actually be fine doing it the way you did initially (passing EOF version in a parameter) and only refactoring in a separate PR so that we can get this one merged quicker.
7fe1be7
to
74dd020
Compare
std::shared_ptr<Compiler> compiler = std::make_shared<Compiler>( | ||
m_evmVersion, | ||
m_eofVersion, | ||
m_revertStrings, | ||
m_optimiserSettings | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compiler
and CompilerContext
are the two places where it's ok to hard-code nullopt
for EOF version. They do use ABIFunctions
and YulUtilFunctions
but only in legacy context.
On the other hand it's not wrong, just unnecessary so I think we can leave it at that and just merge the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to merge, but please rebase on latest develop
first.
74dd020
to
b1d3143
Compare
Contract constructor argument copying needs specific handling for EOF.
Depends on #15635.Merged.