Debug logs

This commit is contained in:
Prathamesh Musale 2024-08-27 18:21:39 +05:30 committed by ashwin
parent f41ba1658e
commit bfa893b19b

View File

@ -53,6 +53,8 @@ const registryTests = () => {
for (let i = 0; i < accounts.length; i++) {
await registry.sendCoins({ denom: DENOM, amount: '1000000', destinationAddress: accounts[i].address }, privateKey, fee);
}
console.log('accounts', accounts);
});
test('All txs get included in a single block.', async () => {
@ -68,6 +70,10 @@ const registryTests = () => {
return tx;
}));
bondCreationTxs.forEach((tx, i) => {
console.log('tx', accounts[i].address, tx.height);
});
// Check that all txs are in the same block
const expectedBlockHeight = bondCreationTxs[0].height;
expect(bondCreationTxs.every(tx => tx.height === expectedBlockHeight)).toBe(true);