Fix default 'account get' output.
All checks were successful
Lint / lint (18.x) (pull_request) Successful in 1m25s
Tests / cli_tests (18.x) (pull_request) Successful in 9m48s

This commit is contained in:
Thomas E Lackey 2024-08-16 21:52:50 -05:00
parent 30654bb0ef
commit 810c6163b5

View File

@ -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);