Skip to content

Commit 9a5a6a8

Browse files
committed
Update docs to mention EIP-6780 (prague,osaka)
1 parent afdd3b7 commit 9a5a6a8

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/ethereum/osaka/state.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ def mark_account_created(state: State, address: Address) -> None:
246246
"""
247247
Mark an account as having been created in the current transaction.
248248
This information is used by `get_storage_original()` to handle an obscure
249-
edgecase.
249+
edgecase, and to respect the constraints added to SELFDESTRUCT by
250+
EIP-6780.
250251
251252
The marker is not removed even if the account creation reverts. Since the
252253
account cannot have had code prior to its creation and can't call

src/ethereum/osaka/vm/interpreter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ def process_create_message(message: Message) -> Evm:
189189

190190
# In the previously mentioned edge case the preexisting storage is ignored
191191
# for gas refund purposes. In order to do this we must track created
192-
# accounts.
192+
# accounts. This tracking is also needed to respect the constraints
193+
# added to SELFDESTRUCT by EIP-6780.
193194
mark_account_created(state, message.current_target)
194195

195196
increment_nonce(state, message.current_target)

src/ethereum/prague/state.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ def mark_account_created(state: State, address: Address) -> None:
246246
"""
247247
Mark an account as having been created in the current transaction.
248248
This information is used by `get_storage_original()` to handle an obscure
249-
edgecase.
249+
edgecase, and to respect the constraints added to SELFDESTRUCT by
250+
EIP-6780.
250251
251252
The marker is not removed even if the account creation reverts. Since the
252253
account cannot have had code prior to its creation and can't call

src/ethereum/prague/vm/interpreter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ def process_create_message(message: Message) -> Evm:
187187

188188
# In the previously mentioned edge case the preexisting storage is ignored
189189
# for gas refund purposes. In order to do this we must track created
190-
# accounts.
190+
# accounts. This tracking is also needed to respect the constraints
191+
# added to SELFDESTRUCT by EIP-6780.
191192
mark_account_created(state, message.current_target)
192193

193194
increment_nonce(state, message.current_target)

0 commit comments

Comments
 (0)