diff --git a/package.json b/package.json index 63dcf72..0e5d681 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cerc-io/laconic-registry-cli", - "version": "0.2.5", + "version": "0.2.6", "main": "index.js", "repository": "git@github.com:cerc-io/laconic-registry-cli.git", "author": "", 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);