Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

circuit for maxcodesize exceed & code store oog #1265

Conversation

DreamWuGit
Copy link
Collaborator

@DreamWuGit DreamWuGit commented Feb 28, 2023

Description

circuit for maxcodesize exceed & code store oog
markdown spec is privacy-scaling-explorations/zkevm-specs#393

Issue Link

#1259

Type of change

  • New feature (non-breaking change which adds functionality)

This PR contains:

  • merge oog codestore and maxcodesize exceed error into one
  • buss mapping & circuit
  • tests for both two error cases(create / create2)
  • fix get_step_err fix get_step_error for tx deploy case #1275
  • test for tx deploy (tx.to = null )

Design choices

  • make error check on RETURN op code not create itself.

@github-actions github-actions bot added crate-bus-mapping Issues related to the bus-mapping workspace member crate-zkevm-circuits Issues related to the zkevm-circuits workspace member labels Feb 28, 2023
@lispc
Copy link
Collaborator

lispc commented Mar 1, 2023

there are 3 ways to deploy contracts CREATE opcode / CREATE2 opcode / tx.to = None .

seems only the first 2 are tested here?

@DreamWuGit
Copy link
Collaborator Author

there are 3 ways to deploy contracts CREATE opcode / CREATE2 opcode / tx.to = None .

seems only the first 2 are tested here?

make sense , even tx.to = None use same create method in core/vm/evm.go, better to have single test for it.

@DreamWuGit DreamWuGit marked this pull request as ready for review March 6, 2023 10:39
@CPerezz CPerezz self-requested a review March 6, 2023 11:08
@CPerezz
Copy link
Member

CPerezz commented Mar 9, 2023

We will need to add the not STATICCALL constraint in here as pointed in the specs PR.

I'll wait until we merge the specs to do the complete review. As this still needs to be updated.

@aguzmant103
Copy link
Member

@DreamWuGit just following up, have you had a chance to update this PR?

@DreamWuGit
Copy link
Collaborator Author

@DreamWuGit just following up, have you had a chance to update this PR?

will update & rebase soon!

@DreamWuGit
Copy link
Collaborator Author

DreamWuGit commented Apr 26, 2023

@aguzmant103 I notice this is create gadget related error, now create gadget PR still pending (not merged) , so a few test failed.

@ed255
Copy link
Member

ed255 commented May 11, 2023

@ChihChengLiang ChihChengLiang linked an issue Jun 15, 2023 that may be closed by this pull request
@ChihChengLiang ChihChengLiang removed the request for review from CPerezz June 20, 2023 15:14
@ChihChengLiang
Copy link
Collaborator

This task is unblocked

@silathdiir
Copy link
Contributor

This task is unblocked

Will update this PR.

@ChihChengLiang ChihChengLiang marked this pull request as draft June 22, 2023 06:00
@KimiWu123 KimiWu123 mentioned this pull request Jul 7, 2023
48 tasks
@KimiWu123
Copy link
Contributor

@silathdiir , is this PR ready for review?

@silathdiir
Copy link
Contributor

@silathdiir , is this PR ready for review?

Sorry, no. I haven't started to work on it. Will start to fix it in next week.

@DreamWuGit
Copy link
Collaborator Author

this PR is much outdated, make new one here #1545, closing this one now.

@DreamWuGit DreamWuGit closed this Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crate-bus-mapping Issues related to the bus-mapping workspace member crate-zkevm-circuits Issues related to the zkevm-circuits workspace member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement ErrorOutOfGasCodeStore & ErrorMaxCodeSizeExceeded
8 participants