Fix default 'account get' output.
This commit is contained in:
parent
30654bb0ef
commit
810c6163b5
@ -18,7 +18,9 @@ export const handler = async (argv: Arguments) => {
|
|||||||
assert(chainId, 'Invalid registry Chain ID.');
|
assert(chainId, 'Invalid registry Chain ID.');
|
||||||
|
|
||||||
if (!address && privateKey) {
|
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);
|
const registry = new Registry(gqlEndpoint, rpcEndpoint, chainId);
|
||||||
|
Loading…
Reference in New Issue
Block a user