Skip to content

Commit

Permalink
refactor: the type of GetEventsRequest.start_ledger has changed fro…
Browse files Browse the repository at this point in the history
…m `str` to `int`.(#847)
  • Loading branch information
overcat committed Dec 16, 2023
1 parent a44fb38 commit 7db69a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stellar_sdk/soroban_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class GetEventsRequest(BaseModel):
more information.
"""

start_ledger: str = Field(alias="startLedger")
start_ledger: int = Field(alias="startLedger")
filters: Optional[Sequence[EventFilter]] = None
pagination: Optional[PaginationOptions] = None

Expand Down
2 changes: 1 addition & 1 deletion tests/test_soroban_server_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ async def test_get_events(self):
}
],
"pagination": {"cursor": "0000054713588387839-0000000000", "limit": 10},
"startLedger": "100",
"startLedger": 100,
}

async def test_get_latest_ledger(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_soroban_server_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def test_get_events(self):
}
],
"pagination": {"cursor": "0000054713588387839-0000000000", "limit": 10},
"startLedger": "100",
"startLedger": 100,
}

def test_get_latest_ledger(self):
Expand Down

0 comments on commit 7db69a4

Please sign in to comment.