Skip to content

Commit

Permalink
chore: remove sysout
Browse files Browse the repository at this point in the history
  • Loading branch information
ablax committed Aug 8, 2024
1 parent 3b834e1 commit 1891978
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/com/limechain/utils/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@ public class StringUtils {
* @throws IllegalArgumentException if the hex string has an odd length or does not match the hex pattern
*/
public static byte[] hexToBytes(String hex) {
System.out.println(hex.length());
System.out.println(hex.length() % 2);
if (hex.length() % 2 != 0) {
throw new IllegalArgumentException("Invalid hex string length");
}

// Trim the 0x prefix if it exists
hex = remove0xPrefix(hex);

byte[] bytes = fromHex(hex);
return bytes;
return fromHex(hex);
}

@JSBody(params = { "hex" }, script = " let bytes = [];" +
Expand Down

0 comments on commit 1891978

Please sign in to comment.