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
Showing only changes of commit b0fd95cf11 - Show all commits

View File

@ -217,6 +217,10 @@ describe('Test laconic CLI commands', () => {
getAccountObj({ address: testAccount2, balance: sendAmount })
];
expect(outputObj.tx.code).toEqual(0);
expect(outputObj.tx.amount).toEqual(`${sendAmount}${TOKEN_TYPE}`);
expect(outputObj.tx.sender).toEqual(testAccount);
expect(outputObj.tx.recipient).toEqual(testAccount2);
expect(outputObj.accounts.length).toEqual(2);
expect(outputObj.accounts).toMatchObject(expectedAccounts);
});