Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Fix grammar in API responses #884

Merged
merged 1 commit into from Aug 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/com/iota/iri/service/API.java
Expand Up @@ -219,7 +219,7 @@ private AbstractResponse process(final String requestString, InetSocketAddress s

if (invalidSubtangleStatus()) {
return ErrorResponse
.create("This operations cannot be executed: The subtangle has not been updated yet.");
.create("This operation cannot be executed: The subtangle has not been updated yet.");
}

final String address = (String) request.get("address");
Expand Down Expand Up @@ -263,7 +263,7 @@ private AbstractResponse process(final String requestString, InetSocketAddress s
case "getInclusionStates": {
if (invalidSubtangleStatus()) {
return ErrorResponse
.create("This operations cannot be executed: The subtangle has not been updated yet.");
.create("This operation cannot be executed: The subtangle has not been updated yet.");
}
final List<String> transactions = getParameterAsList(request,"transactions", HASH_SIZE);
final List<String> tips = getParameterAsList(request,"tips", HASH_SIZE);
Expand Down Expand Up @@ -341,7 +341,7 @@ private AbstractResponse process(final String requestString, InetSocketAddress s
case "checkConsistency": {
if (invalidSubtangleStatus()) {
return ErrorResponse
.create("This operations cannot be executed: The subtangle has not been updated yet.");
.create("This operation cannot be executed: The subtangle has not been updated yet.");
}
final List<String> transactions = getParameterAsList(request,"tails", HASH_SIZE);
return checkConsistencyStatement(transactions);
Expand Down Expand Up @@ -671,7 +671,7 @@ private AbstractResponse getNewInclusionStateStatement(final List<String> trans,
for (final Hash tip : tips) {
TransactionViewModel transactionViewModel = TransactionViewModel.fromHash(instance.tangle, tip);
if (transactionViewModel.getType() == TransactionViewModel.PREFILLED_SLOT){
return ErrorResponse.create("One of the tips absents");
return ErrorResponse.create("One of the tips is absent");
}
int snapshotIndex = transactionViewModel.snapshotIndex();
sameIndexTips.putIfAbsent(snapshotIndex, new LinkedList<>());
Expand Down