Skip to content

Commit 88c6e04

Browse files
AntonKtrueWarchant
authored andcommitted
static toHexHash(..) (#30)
1 parent 83a8c45 commit 88c6e04

File tree

1 file changed

+4
-4
lines changed
  • client/src/main/java/jp/co/soramitsu/iroha/java

1 file changed

+4
-4
lines changed

client/src/main/java/jp/co/soramitsu/iroha/java/Utils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public static String toHex(byte[] b) {
238238
* @param transaction
239239
* @return lowercase hexstring
240240
*/
241-
public String toHexHash(TransactionOuterClass.Transaction transaction) {
241+
public static String toHexHash(TransactionOuterClass.Transaction transaction) {
242242
return DatatypeConverter.printHexBinary(hash(transaction)).toLowerCase();
243243
}
244244

@@ -247,7 +247,7 @@ public String toHexHash(TransactionOuterClass.Transaction transaction) {
247247
* @param query
248248
* @return lowercase hexstring
249249
*/
250-
public String toHexHash(Queries.Query query) {
250+
public static String toHexHash(Queries.Query query) {
251251
return DatatypeConverter.printHexBinary(hash(query)).toLowerCase();
252252
}
253253

@@ -256,7 +256,7 @@ public String toHexHash(Queries.Query query) {
256256
* @param block_v1
257257
* @return lowercase hexstring
258258
*/
259-
public String toHexHash(Block_v1 block_v1) {
259+
public static String toHexHash(Block_v1 block_v1) {
260260
return DatatypeConverter.printHexBinary(hash(block_v1)).toLowerCase();
261261
}
262262

@@ -265,7 +265,7 @@ public String toHexHash(Block_v1 block_v1) {
265265
* @param block
266266
* @return lowercase hexstring
267267
*/
268-
public String toHexHash(Block block) {
268+
public static String toHexHash(Block block) {
269269
return DatatypeConverter.printHexBinary(hash(block)).toLowerCase();
270270
}
271271

0 commit comments

Comments
 (0)