927: Add gettx command and have send command return the tx hash. #78

Merged
telackey merged 4 commits from telackey/927 into main 2024-08-20 03:19:49 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 3a02e91413 - Show all commits

View File

@ -69,7 +69,7 @@ export const handler = async (argv: Arguments) => {
recipient: transfer?.attributes.find(a => a.key === 'recipient')?.value,
amount: transfer?.attributes.find(a => a.key === 'amount')?.value
},
balances: accountResponse
accounts: accountResponse
};
queryOutput(output, argv.output);

View File

@ -217,8 +217,8 @@ describe('Test laconic CLI commands', () => {
getAccountObj({ address: testAccount2, balance: sendAmount })
];
expect(outputObj.length).toEqual(2);
expect(outputObj).toMatchObject(expectedAccounts);
expect(outputObj.accounts.length).toEqual(2);
expect(outputObj.accounts).toMatchObject(expectedAccounts);
});
});