Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Differentiate Incorrect Nonce and Nonce Too Low error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
iikirilov committed May 15, 2019
1 parent 8ae8c72 commit 7ae4512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public String getPrivacyGroup(final String key, final BytesValue from) throws IO
return BytesValue.wrap(receiveResponse.getPrivacyGroupId().getBytes(Charsets.UTF_8))
.toString();
} catch (IOException e) {
LOG.error("Failed to store private transaction in enclave", e);
LOG.error("Failed to retrieve private transaction in enclave", e);
throw e;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public enum JsonRpcError {
// Private transaction errors
ENCLAVE_ERROR(-50100, "Error communicating with enclave"),
PRIVATE_NONCE_TOO_LOW(-50100, "Private transaction nonce too low"),
INCORRECT_PRIVATE_NONCE(-50100, "Private transaction nonce too low"),
INCORRECT_PRIVATE_NONCE(-50100, "Private transaction nonce is incorrect"),
UNIMPLEMENTED_PRIVATE_TRANSACTION_TYPE(-50100, "Unimplemented private transaction type"),
PRIVATE_TRANSACTION_RECEIPT_ERROR(-50100, "Error generating the private transaction receipt"),
VALUE_NOT_ZERO(-50100, "We cannot transfer ether in private transaction yet."),
Expand Down

0 comments on commit 7ae4512

Please sign in to comment.