Skip to content

Commit

Permalink
Fix OffersRequestBuilder.execute
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekn committed Mar 21, 2016
1 parent bca2320 commit 799f0df
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.stellar.sdk.KeyPair;
import org.stellar.sdk.responses.OfferResponse;
import org.stellar.sdk.responses.Page;
import org.stellar.sdk.responses.TransactionResponse;

import java.io.IOException;
import java.net.URI;
Expand Down Expand Up @@ -40,14 +39,14 @@ public OffersRequestBuilder forAccount(KeyPair account) {
* @throws IOException
*/
public static Page<OfferResponse> execute(URI uri) throws IOException, TooManyRequestsException {
TypeToken type = new TypeToken<Page<TransactionResponse>>() {};
TypeToken type = new TypeToken<Page<OfferResponse>>() {};
ResponseHandler<Page<OfferResponse>> responseHandler = new ResponseHandler<Page<OfferResponse>>(type);
return (Page<OfferResponse>) Request.Get(uri).execute().handleResponse(responseHandler);
}

/**
* Build and execute request.
* @return {@link Page} of {@link TransactionResponse}
* @return {@link Page} of {@link OfferResponse}
* @throws TooManyRequestsException when too many requests were sent to the Horizon server.
* @throws IOException
*/
Expand Down

0 comments on commit 799f0df

Please sign in to comment.