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

Add EIP: EOF - TXCREATE and InitcodeTransaction type #9299

Merged
merged 9 commits into from
Feb 13, 2025

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Jan 31, 2025

See also corresponding EOF mega-spec change ipsilon/eof#177

@gumb0 gumb0 requested a review from eth-bot as a code owner January 31, 2025 15:12
@github-actions github-actions bot added c-new Creates a brand new proposal s-draft This EIP is a Draft t-core labels Jan 31, 2025
EIPS/eip-xxxx.md Outdated
@@ -0,0 +1,209 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
---
---
eip: 7873

Don't forget to rename the file as well!

Choose a reason for hiding this comment

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

@Tq101514
Copy link

Tq101514 commented Feb 4, 2025

See also corresponding EOF mega-spec change ipsilon/eof#177

Hello

@gumb0 gumb0 changed the title Add EIP: EOF - TXCREATE instruction and InitcodeTransaction type Add EIP: EOF - TXCREATE and InitcodeTransaction type Feb 4, 2025
@gumb0 gumb0 requested a review from SamWilsn February 4, 2025 14:10
Copy link

@octavio12345300 octavio12345300 left a comment

Choose a reason for hiding this comment

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

list

EIPS/eip-7873.md Outdated
Comment on lines 63 to 71
```python
initcode_cost = 0
for initcode in tx.initcodes:
for byte in initcode:
if byte == 0:
initcode_cost += TX_DATA_COST_PER_ZERO
else:
initcode_cost += TX_DATA_COST_PER_NON_ZERO
```
Copy link
Contributor

Choose a reason for hiding this comment

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

If initcodes costs the same as call data then we need to have this code reflect [EIP-7623)[https://eips.ethereum.org/EIPS/eip-7623], which has a different formulation but includes the "floor" cost.

Copy link
Member Author

Choose a reason for hiding this comment

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

True, there's TODO above about this.

Choose a reason for hiding this comment

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

Y

Copy link
Member Author

Choose a reason for hiding this comment

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

I rewrote initcodes codes cost section to be based on EIP-7623.

Copy link

@octavio12345300 octavio12345300 left a comment

Choose a reason for hiding this comment

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

list

@eth-bot
Copy link
Collaborator

eth-bot commented Feb 7, 2025

✅ All reviewers have approved.

@eth-bot eth-bot added e-consensus Waiting on editor consensus e-review Waiting on editor to review labels Feb 7, 2025

## Security Considerations

Needs discussion.
Copy link
Contributor

Choose a reason for hiding this comment

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

insert a <-- TODO --> html tag for bot to remind you before moving status after draft

Copy link
Member Author

Choose a reason for hiding this comment

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

Added.

@gumb0 gumb0 requested a review from g11tech February 13, 2025 12:49
@eth-bot eth-bot enabled auto-merge (squash) February 13, 2025 15:14
Copy link
Collaborator

@eth-bot eth-bot left a comment

Choose a reason for hiding this comment

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

All Reviewers Have Approved; Performing Automatic Merge...

@eth-bot eth-bot merged commit ffb1c70 into ethereum:master Feb 13, 2025
11 checks passed
Copy link

@octavio12345300 octavio12345300 left a comment

Choose a reason for hiding this comment

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

list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-new Creates a brand new proposal e-consensus Waiting on editor consensus e-review Waiting on editor to review s-draft This EIP is a Draft t-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants