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

Remove address warmup while generating the targetContractAddress #7415

Conversation

lu-pinto
Copy link
Contributor

@lu-pinto lu-pinto commented Jul 31, 2024

PR description

Side-effect free change to remove unnecessary warmUpAddress call from the contract address generation, since that is already done while building the child frame for executing the init code of a contract shortly afterwards.

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

@lu-pinto lu-pinto force-pushed the refactor-remove-warmup-address-while-generating-contract-address branch from 1e93414 to de1d931 Compare July 31, 2024 15:36
@lu-pinto lu-pinto self-assigned this Jul 31, 2024
@lu-pinto lu-pinto requested a review from shemnon July 31, 2024 16:00
@shemnon
Copy link
Contributor

shemnon commented Jul 31, 2024

Reference tests broke, in the create2 section. It's a hard no unless all reference tests pass.

@lu-pinto lu-pinto force-pushed the refactor-remove-warmup-address-while-generating-contract-address branch from de1d931 to 52ba334 Compare August 1, 2024 16:02
…hod to createe frame

Signed-off-by: Luis Pinto <luis.pinto@consensys.net>
@lu-pinto lu-pinto force-pushed the refactor-remove-warmup-address-while-generating-contract-address branch from 52ba334 to f1d5608 Compare August 1, 2024 16:10
Copy link
Contributor

@shemnon shemnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, assuming there are no more changes needed to pass tests.

@lu-pinto lu-pinto merged commit 6623b2d into hyperledger:main Aug 12, 2024
40 checks passed
@lu-pinto lu-pinto deleted the refactor-remove-warmup-address-while-generating-contract-address branch August 12, 2024 20:23
gconnect pushed a commit to gconnect/besu that referenced this pull request Aug 26, 2024
…hod to createe frame (hyperledger#7415)

Signed-off-by: Luis Pinto <luis.pinto@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants