From fc2c2f6dc1778c5acccce6507af62c4b4365a0ab Mon Sep 17 00:00:00 2001 From: Thabokani <149070269+Thabokani@users.noreply.github.com> Date: Tue, 6 Feb 2024 16:05:14 +0800 Subject: [PATCH] Fix typos (#966) Reviewed-by: Usman Saleem --- .../internalresponse/EthSignTypedDataResultProvider.java | 2 +- .../web3signer/core/service/jsonrpc/response/JsonRpcError.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/tech/pegasys/web3signer/core/service/jsonrpc/handlers/internalresponse/EthSignTypedDataResultProvider.java b/core/src/main/java/tech/pegasys/web3signer/core/service/jsonrpc/handlers/internalresponse/EthSignTypedDataResultProvider.java index 2e496550b..e3f6be396 100644 --- a/core/src/main/java/tech/pegasys/web3signer/core/service/jsonrpc/handlers/internalresponse/EthSignTypedDataResultProvider.java +++ b/core/src/main/java/tech/pegasys/web3signer/core/service/jsonrpc/handlers/internalresponse/EthSignTypedDataResultProvider.java @@ -58,7 +58,7 @@ public String createResponseResult(final JsonRpcRequest request) { try { dataEncoder = new StructuredDataEncoder(jsonData); } catch (IOException e) { - throw new RuntimeException("Exception thrown while enconding the json provided"); + throw new RuntimeException("Exception thrown while encoding the json provided"); } final Bytes structuredData = Bytes.of(dataEncoder.getStructuredData()); return transactionSignerProvider diff --git a/core/src/main/java/tech/pegasys/web3signer/core/service/jsonrpc/response/JsonRpcError.java b/core/src/main/java/tech/pegasys/web3signer/core/service/jsonrpc/response/JsonRpcError.java index 3fc3476c8..eff19a92a 100644 --- a/core/src/main/java/tech/pegasys/web3signer/core/service/jsonrpc/response/JsonRpcError.java +++ b/core/src/main/java/tech/pegasys/web3signer/core/service/jsonrpc/response/JsonRpcError.java @@ -127,7 +127,7 @@ public enum JsonRpcError { -50100, "Private from does not match enclave public key"), PMT_FAILED_INTRINSIC_GAS_EXCEEDS_LIMIT( -50100, - "Private Marker Transaction failed due to intrinsic gas exeeding the limit. Gas limit used from the Private Transaction."), + "Private Marker Transaction failed due to intrinsic gas exceeding the limit. Gas limit used from the Private Transaction."), CANT_CONNECT_TO_LOCAL_PEER(-32100, "Cannot add local node as peer."),