Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6055da62c7 |
+1
-1
@@ -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": "",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user