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

fix: Add check for empty inline initcode for contract creation #10449

Merged
merged 1 commit into from Dec 13, 2023

Conversation

lukelee-sl
Copy link
Member

@lukelee-sl lukelee-sl commented Dec 12, 2023

Description:
Add a check to ensure that contracts with empty initcode cannot be created. There was a check for checking empty smart contract byte code files but not for inline transactions.

Checklist

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

Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
Copy link

Node: HAPI Test (Crypto) Results

211 tests   201 ✔️  16m 23s ⏱️
  22 suites    10 💤
  22 files        0

Results for commit 5ce8654.

Copy link

Node: HAPI Test (Token) Results

189 tests   189 ✔️  17m 21s ⏱️
  13 suites      0 💤
  13 files        0

Results for commit 5ce8654.

Copy link

Node: Unit Test Results

    2 291 files  ±0      2 291 suites  ±0   46m 33s ⏱️ + 5m 25s
118 428 tests +2  118 394 ✔️ +2  34 💤 ±0  0 ±0 
126 849 runs  +2  126 815 ✔️ +2  34 💤 ±0  0 ±0 

Results for commit 5ce8654. ± Comparison against base commit 644a8f4.

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (644a8f4) 63.01% compared to head (5ce8654) 63.02%.
Report is 7 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #10449   +/-   ##
==========================================
  Coverage      63.01%   63.02%           
- Complexity     30800    30804    +4     
==========================================
  Files           3360     3360           
  Lines         135281   135283    +2     
  Branches       14074    14075    +1     
==========================================
+ Hits           85253    85267   +14     
+ Misses         46679    46670    -9     
+ Partials        3349     3346    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Node: HAPI Test (Misc) Results

420 tests  ±0   320 ✔️ ±0   24m 14s ⏱️ +18s
  74 suites ±0   100 💤 ±0 
  74 files   ±0       0 ±0 

Results for commit 5ce8654. ± Comparison against base commit 644a8f4.

Copy link

Node: E2E Test Results

    1 files      1 suites   22m 51s ⏱️
311 tests 311 ✔️ 0 💤 0
333 runs  333 ✔️ 0 💤 0

Results for commit 5ce8654.

Copy link

Node: HAPI Test (Time Consuming) Results

21 tests     9 ✔️  25m 16s ⏱️
  2 suites  12 💤
  2 files      0

Results for commit 5ce8654.

Copy link

github-actions bot commented Dec 12, 2023

Node: Integration Test Results

279 tests  ±0   279 ✔️ ±0   28m 14s ⏱️ +8s
    5 suites ±0       0 💤 ±0 
    5 files   ±0       0 ±0 

Results for commit 5ce8654. ± Comparison against base commit 644a8f4.

♻️ This comment has been updated with latest results.

Copy link

Node: HAPI Test (Smart Contract) Results

398 tests  +1   357 ✔️ +1   44m 34s ⏱️ +47s
  55 suites ±0     41 💤 ±0 
  55 files   ±0       0 ±0 

Results for commit 5ce8654. ± Comparison against base commit 644a8f4.

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
Contributor

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

LG

Copy link
Member

@Neeharika-Sompalli Neeharika-Sompalli 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. Thanks @lukelee-sl !

@lukelee-sl lukelee-sl merged commit 45632ac into develop Dec 13, 2023
37 checks passed
@lukelee-sl lukelee-sl deleted the check-empty-create-initcode branch December 13, 2023 03:05
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
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants