Fix cns name resolve
#42
@ -20,6 +20,8 @@ export const handler = async (argv: Arguments) => {
|
|||||||
|
|
||||||
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
|
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);
|
queryOutput(result, argv.output);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user