Skip to content

Commit

Permalink
just check for account null
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Sweet authored and afostr committed Apr 10, 2024
1 parent 000d3c5 commit a018f6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a018f6b

Please sign in to comment.