We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48e7fa0 + 715c925 commit 6b84534Copy full SHA for 6b84534
modules/sdk-coin-near/src/lib/utils.ts
@@ -49,6 +49,9 @@ export class Utils implements BaseUtils {
49
* or can create a new keyPair
50
*/
51
isValidAccountId(accountId: string): boolean {
52
+ if (!accountId) {
53
+ return false;
54
+ }
55
return (
56
(/^(([a-z\d]+[\-_])*[a-z\d]+\.)*([a-z\d]+[\-_])*[a-z\d]+$/.test(accountId) &&
57
accountId.length >= 2 &&
0 commit comments