Implement command getting status

This commit is contained in:
2022-04-27 15:32:46 +05:30
committed by Ashwin Phatak
parent 11482ab5c8
commit 7f09a16e2a
3 changed files with 5 additions and 7 deletions
+2 -4
View File
@@ -15,10 +15,8 @@ export const handler = async (argv: Arguments) => {
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
console.log('parse argv', restEndpoint, gqlEndpoint, chainId)
const registry = new Registry(restEndpoint, gqlEndpoint, chainId);
// TODO: Implement getStatus method.
// const result = await registry.getStatus();
// console.log(JSON.stringify(result, undefined, 2));
const result = await registry.getStatus();
console.log(JSON.stringify(result, undefined, 2));
}