diff --git a/src/cmds/cns-cmds/tokens-cmds/send.ts b/src/cmds/cns-cmds/tokens-cmds/send.ts index 1b18fe1..b57cd76 100644 --- a/src/cmds/cns-cmds/tokens-cmds/send.ts +++ b/src/cmds/cns-cmds/tokens-cmds/send.ts @@ -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); diff --git a/test/cli.test.ts b/test/cli.test.ts index c2452bb..15f5131 100644 --- a/test/cli.test.ts +++ b/test/cli.test.ts @@ -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';