From a018f6b733b976de17054e992aade3903565b119 Mon Sep 17 00:00:00 2001 From: Sam Sweet Date: Wed, 10 Apr 2024 11:08:29 -0400 Subject: [PATCH] just check for account null --- src/utils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 6b145dab..9101fb0b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -483,9 +483,7 @@ export async function getAccountFromValidator( addressStr: string ): Promise<{ account?: Account2; nodeUrl?: string }> { function responseCheck(data: any): boolean { - return ( - data.account !== undefined && data.account.nonce !== undefined && data.account.balance !== undefined - ) + return data.account != null } const res = await requestWithRetry( RequestMethod.Get,