Skip to content

Commit

Permalink
faucet: Update error message in parseBankToken
Browse files Browse the repository at this point in the history
  • Loading branch information
willclarktech committed Oct 20, 2020
1 parent ae024e5 commit 92fa8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/faucet/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const parseBankTokenPattern = /^([a-zA-Z]{2,20})$/;
export function parseBankToken(input: string): string {
const match = input.replace(/\s/g, "").match(parseBankTokenPattern);
if (!match) {
throw new Error("Token could not be parsed. Format: {DISPLAY}=10^{DIGITS}{base}, e.g. ATOM=10^6uatom");
throw new Error("Token could not be parsed");
}
return match[1];
}
Expand Down

0 comments on commit 92fa8a6

Please sign in to comment.