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

Calculate and set the CREATE address for internally created contracts #7293

Merged

Conversation

MiroslavGatsanoga
Copy link
Collaborator

Description:

Update HederaEvmCreateOperation.targetContractAddress to calculate the CREATE address of a new contract based on the sender's address and nonce.

Related issue(s):

Fixes #7124

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +90.22 🎉

Comparison is base (7bd1ef5) 0.00% compared to head (77b43c2) 90.22%.

❗ Current head 77b43c2 differs from pull request most recent head 8942dd6. Consider uploading reports for the commit 8942dd6 to get more accurate results

Additional details and impacted files
@@              Coverage Diff               @@
##             develop    #7293       +/-   ##
==============================================
+ Coverage           0   90.22%   +90.22%     
- Complexity         0    19116    +19116     
==============================================
  Files              0     1515     +1515     
  Lines              0    55935    +55935     
  Branches           0     5821     +5821     
==============================================
+ Hits               0    50469    +50469     
- Misses             0     4268     +4268     
- Partials           0     1198     +1198     
Impacted Files Coverage Δ
...contracts/operations/HederaEvmCreateOperation.java 100.00% <100.00%> (ø)

... and 1514 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Miroslav Gatsanoga <[email protected]>
@github-actions
Copy link

github-actions bot commented Jun 28, 2023

Node: Unit Test Results

    1 523 files      1 523 suites   16m 39s ⏱️
102 769 tests 102 763 ✔️ 6 💤 0
109 127 runs  109 121 ✔️ 6 💤 0

Results for commit 8942dd6.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jun 28, 2023

Node: E2E Test Results

    1 files      1 suites   17m 57s ⏱️
310 tests 310 ✔️ 0 💤 0
328 runs  328 ✔️ 0 💤 0

Results for commit 8942dd6.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jun 28, 2023

Node: Integration Test Results

278 tests   278 ✔️  27m 43s ⏱️
    5 suites      0 💤
    5 files        0

Results for commit 8942dd6.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

Makes sense to me @MiroslavGatsanoga , tyvm!

@sonarcloud
Copy link

sonarcloud bot commented Jul 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@MiroslavGatsanoga MiroslavGatsanoga marked this pull request as ready for review July 7, 2023 13:09
@MiroslavGatsanoga MiroslavGatsanoga requested review from a team as code owners July 7, 2023 13:09
Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM!

@MiroslavGatsanoga MiroslavGatsanoga merged commit 2b78ffd into develop Jul 7, 2023
@MiroslavGatsanoga MiroslavGatsanoga deleted the 07124-calculate-internal-contract-create-addresses branch July 7, 2023 14:43
Copy link
Member

@david-bakin-sl david-bakin-sl left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@david-bakin-sl david-bakin-sl left a comment

Choose a reason for hiding this comment

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

LGTM

mustafauzunn pushed a commit that referenced this pull request Jul 10, 2023
vtronkov pushed a commit that referenced this pull request Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Calculate and set the CREATE1 address for internally created contracts
5 participants