Merge pull request #480 from cosmos/477-faucet-error-message
Fix faucet error message
This commit is contained in:
commit
2b45933aa3
@ -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];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user