Skip to content

Commit

Permalink
Make Account.last_modified_time optional (#19)
Browse files Browse the repository at this point in the history
This can happen when a Horizon node did not completely sync the history

See issue #18
  • Loading branch information
martin-thoma authored Oct 9, 2021
1 parent 3175106 commit 636f37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stellar_model/model/horizon/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Account(BaseModel):
last_modified_ledger: int = Field(
description="The ID of the last ledger that included changes to this account."
)
last_modified_time: datetime = Field(
last_modified_time: Optional[datetime] = Field(
description="The time of the last ledger that included "
"changes to this account."
)
Expand Down

0 comments on commit 636f37c

Please sign in to comment.