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

fix(events): add missing signal_bits to event schema #985

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
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
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
msbrogli marked this conversation as resolved.
Show resolved Hide resolved
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
Loading