From 628d997843f18334c9302bcc81fb4d02f65e3410 Mon Sep 17 00:00:00 2001 From: aionick Date: Mon, 11 Feb 2019 14:49:47 -0500 Subject: [PATCH] getTransactionHash method is now static - This method has no state or reliance on the builder itself, so it is made static for convenience. --- src/main/SignedTransactionBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/SignedTransactionBuilder.java b/src/main/SignedTransactionBuilder.java index 2b461d2..9261d6f 100644 --- a/src/main/SignedTransactionBuilder.java +++ b/src/main/SignedTransactionBuilder.java @@ -217,7 +217,7 @@ public byte[] buildSignedTransaction() throws InvalidKeySpecException, InvalidKe * @throws NullPointerException if signedTransaction is null. * @throws IllegalStateException if the provided bytes could not be interpreted. */ - public byte[] getTransactionHashOfSignedTransaction(byte[] signedTransaction) { + public static byte[] getTransactionHashOfSignedTransaction(byte[] signedTransaction) { if (signedTransaction == null) { throw new NullPointerException("cannot extract hash from a null transaction."); }