Skip to content

Commit

Permalink
static toHexHash(..) (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKtrue authored and Warchant committed May 24, 2019
1 parent 83a8c45 commit 88c6e04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/main/java/jp/co/soramitsu/iroha/java/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public static String toHex(byte[] b) {
* @param transaction
* @return lowercase hexstring
*/
public String toHexHash(TransactionOuterClass.Transaction transaction) {
public static String toHexHash(TransactionOuterClass.Transaction transaction) {
return DatatypeConverter.printHexBinary(hash(transaction)).toLowerCase();
}

Expand All @@ -247,7 +247,7 @@ public String toHexHash(TransactionOuterClass.Transaction transaction) {
* @param query
* @return lowercase hexstring
*/
public String toHexHash(Queries.Query query) {
public static String toHexHash(Queries.Query query) {
return DatatypeConverter.printHexBinary(hash(query)).toLowerCase();
}

Expand All @@ -256,7 +256,7 @@ public String toHexHash(Queries.Query query) {
* @param block_v1
* @return lowercase hexstring
*/
public String toHexHash(Block_v1 block_v1) {
public static String toHexHash(Block_v1 block_v1) {
return DatatypeConverter.printHexBinary(hash(block_v1)).toLowerCase();
}

Expand All @@ -265,7 +265,7 @@ public String toHexHash(Block_v1 block_v1) {
* @param block
* @return lowercase hexstring
*/
public String toHexHash(Block block) {
public static String toHexHash(Block block) {
return DatatypeConverter.printHexBinary(hash(block)).toLowerCase();
}

Expand Down

0 comments on commit 88c6e04

Please sign in to comment.