Skip to content

Commit 4ec7512

Browse files
tcoratgerclaude
andauthored
refactor(state-transition): simplify slot increment and module docstring (leanEthereum#1103)
Drop the redundant Slot() wrapper around an already-Slot sum, and shorten the module header to a single plain summary line. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 43e670c commit 4ec7512

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lean_spec/spec/forks/lstar/state_transition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Lstar fork — state transition: slots, header, body, finalization."""
1+
"""Lstar fork — state transition."""
22

33
from collections.abc import Iterable
44
from typing import Any
@@ -96,7 +96,7 @@ def process_slots(self, state: State, target_slot: Slot) -> State:
9696
"latest_block_header": state.latest_block_header.model_copy(
9797
update={"state_root": cached_state_root}
9898
),
99-
"slot": Slot(state.slot + Slot(1)),
99+
"slot": state.slot + Slot(1),
100100
}
101101
)
102102

0 commit comments

Comments
 (0)