Add support for using auto fee calculation #22

Merged
nabarun merged 19 commits from deep-stack/registry-sdk:iv-add-tx-info-test into main 2024-09-06 09:07:58 +00:00
Showing only changes of commit adf33a5c39 - Show all commits

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);