difftreelog
Tests fix
in: master
1 file changed
tests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth13 itWeb3 } from './util/helpers';13 itWeb3 } from './util/helpers';14import waitNewBlocks from '../substrate/wait-new-blocks';14import waitNewBlocks from '../substrate/wait-new-blocks';151516describe.only('Sponsoring EVM contracts', () => {16describe('Sponsoring EVM contracts', () => {17 itWeb3('Sponsoring can be set by the address that has deployed the contract', async ({api, web3}) => {17 itWeb3('Sponsoring can be set by the address that has deployed the contract', async ({api, web3}) => {18 const owner = await createEthAccountWithBalance(api, web3);18 const owner = await createEthAccountWithBalance(api, web3);19 const flipper = await deployFlipper(web3, owner);19 const flipper = await deployFlipper(web3, owner);186 expect(await web3.eth.getBalance(caller)).to.be.not.equals(originalCallerBalance);186 expect(await web3.eth.getBalance(caller)).to.be.not.equals(originalCallerBalance);187 });187 });188188189 // TODO: Find a way to calculate default rate limit 189 itWeb3('Sponsoring can be set by the address that has deployed the contract', async ({api, web3}) => {190 itWeb3('Default rate limit equals 7200', async ({api, web3}) => {190 const owner = await createEthAccountWithBalance(api, web3);191 const owner = await createEthAccountWithBalance(api, web3);191 const flipper = await deployFlipper(web3, owner);192 const flipper = await deployFlipper(web3, owner);192 await waitNewBlocks(api, 1);193 await waitNewBlocks(api, 1);