Add support for using auto
fee calculation
#22
@ -53,6 +53,8 @@ const registryTests = () => {
|
|||||||
for (let i = 0; i < accounts.length; i++) {
|
for (let i = 0; i < accounts.length; i++) {
|
||||||
await registry.sendCoins({ denom: DENOM, amount: '1000000', destinationAddress: accounts[i].address }, privateKey, fee);
|
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 () => {
|
test('All txs get included in a single block.', async () => {
|
||||||
@ -68,6 +70,10 @@ const registryTests = () => {
|
|||||||
return tx;
|
return tx;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
bondCreationTxs.forEach((tx, i) => {
|
||||||
|
console.log('tx', accounts[i].address, tx.height);
|
||||||
|
});
|
||||||
|
|
||||||
// Check that all txs are in the same block
|
// Check that all txs are in the same block
|
||||||
const expectedBlockHeight = bondCreationTxs[0].height;
|
const expectedBlockHeight = bondCreationTxs[0].height;
|
||||||
expect(bondCreationTxs.every(tx => tx.height === expectedBlockHeight)).toBe(true);
|
expect(bondCreationTxs.every(tx => tx.height === expectedBlockHeight)).toBe(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user