Skip to content

Commit

Permalink
Remove new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Jul 4, 2024
1 parent fa3be70 commit 323f59c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class AsyncFlowAccessApiImpl(
try {
api.getTransactionResult(Access.GetTransactionRequest.newBuilder().setId(id.byteStringValue).build())
} catch (e: Exception) {
return CompletableFuture.completedFuture(FlowAccessApi.AccessApiCallResponse.Error("Failed to get transaction result by ID", e))
return CompletableFuture.completedFuture(FlowAccessApi.AccessApiCallResponse.Error("Failed to get transaction result by ID", e))
}
).handle { response, ex ->
if (ex != null) {
Expand Down Expand Up @@ -299,7 +299,7 @@ class AsyncFlowAccessApiImpl(
try {
api.getAccountAtLatestBlock(Access.GetAccountAtLatestBlockRequest.newBuilder().setAddress(addresss.byteStringValue).build())
} catch (e: Exception) {
return CompletableFuture.completedFuture(FlowAccessApi.AccessApiCallResponse.Error("Failed to get account at latest block", e))
return CompletableFuture.completedFuture(FlowAccessApi.AccessApiCallResponse.Error("Failed to get account at latest block", e))
}
).handle { response, ex ->
if (ex != null) {
Expand Down Expand Up @@ -357,7 +357,7 @@ class AsyncFlowAccessApiImpl(
.build()
)
} catch (e: Exception) {
return CompletableFuture.completedFuture(FlowAccessApi.AccessApiCallResponse.Error("Failed to execute script at latest block", e))
return CompletableFuture.completedFuture(FlowAccessApi.AccessApiCallResponse.Error("Failed to execute script at latest block", e))
}
).handle { response, ex ->
if (ex != null) {
Expand Down Expand Up @@ -500,7 +500,7 @@ class AsyncFlowAccessApiImpl(
try {
api.getLatestProtocolStateSnapshot(Access.GetLatestProtocolStateSnapshotRequest.newBuilder().build())
} catch (e: Exception) {
return CompletableFuture.completedFuture(FlowAccessApi.AccessApiCallResponse.Error("Failed to get latest protocol state snapshot", e))
return CompletableFuture.completedFuture(FlowAccessApi.AccessApiCallResponse.Error("Failed to get latest protocol state snapshot", e))
}
).handle { response, ex ->
if (ex != null) {
Expand Down

0 comments on commit 323f59c

Please sign in to comment.