--- a/tests/src/eth/util/helpers.ts +++ b/tests/src/eth/util/helpers.ts @@ -18,6 +18,7 @@ import privateKey from '../../substrate/privateKey'; import contractHelpersAbi from './contractHelpersAbi.json'; import getBalance from '../../substrate/get-balance'; +import waitNewBlocks from '../../substrate/wait-new-blocks'; export const GAS_ARGS = { gas: 0x1000000, gasPrice: '0x01' }; @@ -232,6 +233,7 @@ const before = await ethBalanceViaSub(api, user); await call(); + await waitNewBlocks(api, 1); const after = await ethBalanceViaSub(api, user);