Use registry-sdk in CLI #56
@ -34,7 +34,8 @@ export const handler = async (argv: Arguments) => {
|
|||||||
assert(chainId, 'Invalid CNS Chain ID.');
|
assert(chainId, 'Invalid CNS Chain ID.');
|
||||||
|
|
||||||
const account = new Account(Buffer.from(privateKey, 'hex'));
|
const account = new Account(Buffer.from(privateKey, 'hex'));
|
||||||
const fromAddress = account.formattedCosmosAddress;
|
await account.init();
|
||||||
|
const fromAddress = account.address;
|
||||||
|
|
||||||
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
|
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
|
||||||
const fee = getGasAndFees(argv, cnsConfig);
|
const fee = getGasAndFees(argv, cnsConfig);
|
||||||
|
@ -51,7 +51,7 @@ describe('Test laconic CLI commands', () => {
|
|||||||
describe('laconic CNS commands', () => {
|
describe('laconic CNS commands', () => {
|
||||||
const testAccount = process.env.TEST_ACCOUNT;
|
const testAccount = process.env.TEST_ACCOUNT;
|
||||||
assert(testAccount, 'TEST_ACCOUNT not set in env');
|
assert(testAccount, 'TEST_ACCOUNT not set in env');
|
||||||
const testAccount2 = 'ethm1vc62ysqu504at932jjq8pwrqgjt67rx6ggn5yu';
|
const testAccount2 = 'laconic1pmuxrcnuhhf8qdllzuf2ctj2tnwwcg6yswqnyd';
|
||||||
const initialAccountBalance = Number('100000000000000000000000000');
|
const initialAccountBalance = Number('100000000000000000000000000');
|
||||||
|
|
||||||
const testAuthorityName = 'laconic';
|
const testAuthorityName = 'laconic';
|
||||||
|
Loading…
Reference in New Issue
Block a user