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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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

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

@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

File EIPS/eip-7873.md

Requires 1 more reviewers from @g11tech, @lightclient, @SamWilsn

@eth-bot eth-bot added e-consensus Waiting on editor consensus e-review Waiting on editor to review labels Feb 7, 2025
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.

6 participants