Update account address
Some checks failed
Tests / cli_tests (18.x) (pull_request) Failing after 51s
Lint / lint (18.x) (pull_request) Failing after 55s

This commit is contained in:
neeraj 2024-03-12 19:25:09 +05:30
parent 46fa64ab27
commit 84195a607d
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,8 @@ export const handler = async (argv: Arguments) => {
assert(chainId, 'Invalid CNS Chain ID.');
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 fee = getGasAndFees(argv, cnsConfig);

View File

@ -51,7 +51,7 @@ describe('Test laconic CLI commands', () => {
describe('laconic CNS commands', () => {
const testAccount = process.env.TEST_ACCOUNT;
assert(testAccount, 'TEST_ACCOUNT not set in env');
const testAccount2 = 'ethm1vc62ysqu504at932jjq8pwrqgjt67rx6ggn5yu';
const testAccount2 = 'laconic1pmuxrcnuhhf8qdllzuf2ctj2tnwwcg6yswqnyd';
const initialAccountBalance = Number('100000000000000000000000000');
const testAuthorityName = 'laconic';