Skip to content

Commit

Permalink
fix(events): add missing signal_bits to event schema
Browse files Browse the repository at this point in the history
  • Loading branch information
glevco committed Apr 1, 2024
1 parent 947db7b commit 84c2347
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 103 deletions.
1 change: 1 addition & 0 deletions hathor/event/model/event_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class TxData(BaseEventData, extra=Extra.ignore):
hash: str
nonce: Optional[int] = None
timestamp: int
signal_bits: int
version: int
weight: float
inputs: list['TxInput']
Expand Down
1 change: 1 addition & 0 deletions tests/event/test_base_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_create_base_event(event_id: int, group_id: int | None) -> None:
hash='abc',
nonce=123,
timestamp=456,
signal_bits=0,
version=1,
weight=10.0,
inputs=[],
Expand Down
Loading

0 comments on commit 84c2347

Please sign in to comment.