Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions EIPS/eip-7748.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ Include the following code in the existing `apply_body(...)` function:
```python
def apply_body(state: State, ...) -> Tuple[Uint, Root, Root, Bloom, State, Root]:
...
# <new_code>
if block_time >= CONVERSION_START_TIMESTAMP and not state._conversion_finished:
block_state_conversion(state, CONVERSION_STRIDE)
# </new_code>

for i, tx in enumerate(map(decode_transaction, transactions)):
...
Expand Down Expand Up @@ -93,10 +91,8 @@ Modify the `State` class by adding the following attributes:
```python
@dataclass
class State:
# <new_code>
_conversion_curr_account: Optional[CurrentConvertingAccount] = None
_conversion_finished: bool = False
# </new_code>
...

```
Expand Down Expand Up @@ -150,12 +146,10 @@ def conversion_move_to_next_account(state: State):
def set_storage(
state: State, addr: Address, key: Bytes, value: U256, only_if_empty: bool = True
) -> None:
# <new_code>
if only_if_empty:
value = state._overlay_tree.get(get_tree_key_for_storage_slot(addr, key))
if value is not None:
return
# </new_code>

state._overlay_tree.set(get_tree_key_for_storage_slot(addr, key), value)
```
Expand Down
Loading