From 7807822906ce86868b487e7f9805161413479c22 Mon Sep 17 00:00:00 2001 From: Aaron Cox Date: Sat, 20 Jan 2024 11:26:53 -0800 Subject: [PATCH] Handle 5.x error messages in account checker --- src/commands/account/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/account/index.ts b/src/commands/account/index.ts index b8a06ad..2a25044 100644 --- a/src/commands/account/index.ts +++ b/src/commands/account/index.ts @@ -124,7 +124,10 @@ async function checkAccountNameExists(accountName: NameType, chainUrl: string): } catch (error: unknown) { const errorMessage = (error as {message: string}).message - if (errorMessage.includes('Account not found')) { + if ( + errorMessage.includes('Account not found') || + errorMessage.includes('Account Query Exception') + ) { return false }