Skip to content

Commit

Permalink
fixing lift warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oak committed Mar 3, 2022
1 parent 748a83f commit ab6d863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/syntifi/near/api/model/key/KeySig.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import lombok.Setter;

import java.lang.reflect.InvocationTargetException;
import java.util.regex.Pattern;

/**
* KeySig holds information about a key or signature.
Expand Down Expand Up @@ -52,7 +53,7 @@ public static <T extends KeySig> T fromEncodedBase58String(String encodedBase58S
KeyType keyType;
byte[] data;

String[] key = encodedBase58String.split(SEPARATOR);
String[] key = encodedBase58String.split(SEPARATOR, -1);
try {
keyType = KeyType.valueOf(key[0].toUpperCase());
} catch (Exception e) {
Expand Down

0 comments on commit ab6d863

Please sign in to comment.