Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
Make sure prefix equals nano_
Browse files Browse the repository at this point in the history
  • Loading branch information
rotilho committed Nov 30, 2018
1 parent 7f8474d commit 7a2f8ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public String regex() {

@Override
public String extractEncodedPublicKey(String account) {
if (prefix.contains("nano")) {
if (prefix.equals("nano_")) {
return account.startsWith("nano_") ? account.substring(5, 57) : account.substring(4, 56);
}
return account.substring(4, 56);
Expand Down

0 comments on commit 7a2f8ec

Please sign in to comment.