8000 [EVM] Avoid unncessary code execution during a contract deployment by hyunsooda · Pull Request #1876 · klaytn/klaytn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

[EVM] Avoid unncessary code execution during a contract deployment #1876

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

hyunsooda
Copy link
Contributor

Proposed changes

Except for contracts created using the CallXXX family of opcodes, a contract address generated by the create and create2 opcodes does not require the execution of the run() function in the guard. This is because the contract address created through these opcodes is definitly not associated with a precompiled contract address by this. This change eliminates the need for unnecessary code execution, resulting in the removal of imprecise elapsed time caused by the unnecessary code execution.

Reference: https://github.com/ethereum/go-ethereum/blob/master/core/vm/evm.go#L465

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Related issues

  • Please leave the issue numbers or links related to this PR here.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@blukat29 blukat29 merged commit 004d31b into klaytn:dev Jul 18, 2023
@aidan-kwon aidan-kwon mentioned this pull request Aug 3, 2023
20 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
< 5226 div class="discussion-sidebar-item sidebar-assignee js-discussion-sidebar-item js-socket-channel js-updatable-content" data-channel="eyJjIjoicHVsbF9yZXF1ZXN0OjE0MjM5NTcwNjIiLCJ0IjoxNzUyMDM4OTE4fQ==--7a9202ec600d090f1625762bcc7d2683d2042efe3dd6b6cb851104a3e126f6f8" data-gid="PR_kwDOC2aNa85U39xG" data-url="/klaytn/klaytn/issues/1876/show_partial?partial=issues%2Fsidebar%2Fshow%2Fassignees" data-channel-event-name="assignees_updated" >
Assignees

@hyunsooda hyunsooda

Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0