Skip to content
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

Test for CODECOPY'ing initialization code #1482

Open
OlivierBBB opened this issue Nov 5, 2024 · 0 comments
Open

Test for CODECOPY'ing initialization code #1482

OlivierBBB opened this issue Nov 5, 2024 · 0 comments
Labels

Comments

@OlivierBBB
Copy link
Collaborator

We need a test for CODECOPY'ing initialization code. This is in the wake of realizing that account snapshots weren't working properly, see commit b9d0c4a.

Example initialization code

CODESIZE
PUSH1 0x00
PUSH1 0x00
CODECOPY

// we could stop here
// what follows is just
// a means to visualize
// the CODECOPY operation

PUSH1 0x00
MLOAD

// again, we could stop
// here on an empty code
// deployment

CODESIZE
PUSH1 0x00
RETURN

We finish on a RETURN instruction that deploys the initialization code but we may as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant