From c3fa65768712d0ce16b7a4b5aad151f93c7489c4 Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Fri, 31 Mar 2023 23:48:03 +0530 Subject: [PATCH] file "resolve" output --- src/cmds/cns-cmds/name-cmds/resolve.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cmds/cns-cmds/name-cmds/resolve.ts b/src/cmds/cns-cmds/name-cmds/resolve.ts index d125f9f..ef8dfbb 100644 --- a/src/cmds/cns-cmds/name-cmds/resolve.ts +++ b/src/cmds/cns-cmds/name-cmds/resolve.ts @@ -2,7 +2,7 @@ import { Arguments } from 'yargs'; import assert from 'assert'; import { Registry } from '@cerc-io/laconic-sdk'; -import { getConfig, getConnectionInfo,txOutput } from '../../../util'; +import { getConfig, getConnectionInfo,queryOutput } from '../../../util'; export const command = 'resolve [name]'; @@ -21,7 +21,5 @@ export const handler = async (argv: Arguments) => { const registry = new Registry(gqlEndpoint, restEndpoint, chainId); const result = await registry.resolveNames([name]); - const success = `{"success":${result.code==0}}` - txOutput(result,success,argv.output,argv.verbose) - + queryOutput(result,argv.output) }