Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

rodiazet
Copy link
Contributor

@rodiazet rodiazet commented Dec 10, 2024

Contract constructor argument copying needs specific handling for EOF.

Depends on #15635. Merged.

This comment was marked as resolved.

@cameel cameel changed the title eof: Fix contructor arguments copying for EOF eof: Fix constructor argument copying for EOF Dec 11, 2024
@cameel cameel added has dependencies The PR depends on other PRs that must be merged first EOF labels Dec 11, 2024
@rodiazet rodiazet force-pushed the eof-fix-contructor-arguments-copying branch from 78146e5 to ab2af67 Compare December 11, 2024 10:03
@cameel cameel removed the has dependencies The PR depends on other PRs that must be merged first label Dec 12, 2024
@rodiazet rodiazet force-pushed the eof-fix-contructor-arguments-copying branch from ab2af67 to 1ca4f78 Compare December 12, 2024 09:44
Copy link
Collaborator

@cameel cameel left a 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.

@rodiazet rodiazet force-pushed the eof-fix-contructor-arguments-copying branch from 1ca4f78 to bc02eb0 Compare December 13, 2024 11:16
Copy link
Collaborator

@cameel cameel left a 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.

@rodiazet rodiazet force-pushed the eof-fix-contructor-arguments-copying branch 3 times, most recently from 7fe1be7 to 74dd020 Compare December 17, 2024 09:36
Comment on lines +1505 to +1510
std::shared_ptr<Compiler> compiler = std::make_shared<Compiler>(
m_evmVersion,
m_eofVersion,
m_revertStrings,
m_optimiserSettings
);
Copy link
Collaborator

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.

Copy link
Collaborator

@cameel cameel left a 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.

@rodiazet rodiazet force-pushed the eof-fix-contructor-arguments-copying branch from 74dd020 to b1d3143 Compare December 18, 2024 18:52
@cameel cameel enabled auto-merge December 18, 2024 18:55
@cameel cameel merged commit 6277577 into argotorg:develop Dec 18, 2024
73 checks passed
@rodiazet rodiazet deleted the eof-fix-contructor-arguments-copying branch December 18, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants