Skip to content

Commit

Permalink
getTransactionHash method is now static
Browse files Browse the repository at this point in the history
- This method has no state or reliance on the builder itself, so it
  is made static for convenience.
  • Loading branch information
aionick committed Feb 11, 2019
1 parent 835b9bc commit 628d997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/SignedTransactionBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand Down

0 comments on commit 628d997

Please sign in to comment.