From 97165d08a94a477b58376895a6bda1ab1599226a Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Wed, 29 Nov 2023 22:57:48 -0600 Subject: [PATCH] Filter null result --- src/cmds/cns-cmds/name-cmds/resolve.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmds/cns-cmds/name-cmds/resolve.ts b/src/cmds/cns-cmds/name-cmds/resolve.ts index e0711b4..d4388c2 100644 --- a/src/cmds/cns-cmds/name-cmds/resolve.ts +++ b/src/cmds/cns-cmds/name-cmds/resolve.ts @@ -20,6 +20,8 @@ export const handler = async (argv: Arguments) => { const registry = new Registry(gqlEndpoint, restEndpoint, chainId); - const result = await registry.resolveNames([name]); + let result = await registry.resolveNames([name]); + result = result.filter((v: any) => v); + queryOutput(result, argv.output); }