Use registry-sdk in CLI #56

Merged
nabarun merged 6 commits from deep-stack/laconic-registry-cli:nv-use-registry-sdk into laconic2 2024-03-18 13:58:53 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 84195a607d - Show all commits

View File

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

View File

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