From 810c6163b550bf49a88e8878b351bbe5aeecfab8 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Fri, 16 Aug 2024 21:52:50 -0500 Subject: [PATCH] Fix default 'account get' output. --- src/cmds/registry-cmds/account-cmds/get.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmds/registry-cmds/account-cmds/get.ts b/src/cmds/registry-cmds/account-cmds/get.ts index d86ab82..192505d 100644 --- a/src/cmds/registry-cmds/account-cmds/get.ts +++ b/src/cmds/registry-cmds/account-cmds/get.ts @@ -18,7 +18,9 @@ export const handler = async (argv: Arguments) => { assert(chainId, 'Invalid registry Chain ID.'); if (!address && privateKey) { - address = new Account(Buffer.from(privateKey, 'hex')).address; + const account = new Account(Buffer.from(privateKey, 'hex')); + await account.init(); + address = account.address; } const registry = new Registry(gqlEndpoint, rpcEndpoint, chainId);