diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index f33a7a5fe..1a4f15f83 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -95,7 +95,8 @@ jobs: fail-fast: false matrix: emulator: [ - { api-level: 23, target: google_apis }, + # { api-level: 23, target: google_apis }, + # It seems that Google no longer provides this image? Let's temporarily disable it. { api-level: 34, target: playstore } ] steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c5142eb6..1440d63b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Pending +### Update: +- feat: Add `endLedger` field to `GetEventsRequest`. ([#739](https://github.com/stellar/java-stellar-sdk/pull/739)) + ## 2.0.0 **This release adds support for Protocol 23.** diff --git a/src/main/java/org/stellar/sdk/requests/sorobanrpc/GetEventsRequest.java b/src/main/java/org/stellar/sdk/requests/sorobanrpc/GetEventsRequest.java index 858ba35e7..f5ae7b165 100644 --- a/src/main/java/org/stellar/sdk/requests/sorobanrpc/GetEventsRequest.java +++ b/src/main/java/org/stellar/sdk/requests/sorobanrpc/GetEventsRequest.java @@ -16,6 +16,8 @@ public class GetEventsRequest { Long startLedger; + Long endLedger; + @Singular("filter") Collection filters; diff --git a/src/test/java/org/stellar/sdk/SorobanServerTest.java b/src/test/java/org/stellar/sdk/SorobanServerTest.java index c399ed77a..fe864b9ef 100644 --- a/src/test/java/org/stellar/sdk/SorobanServerTest.java +++ b/src/test/java/org/stellar/sdk/SorobanServerTest.java @@ -728,6 +728,7 @@ public void testGetEvents() throws IOException, SorobanRpcException { GetEventsRequest getEventsRequest = GetEventsRequest.builder() .startLedger(100L) + .endLedger(105L) .filter(eventFilter) .pagination(paginationOptions) .build();