git.delta.rocks / unique-network / refs/commits / 9ec63641102a

difftreelog

Tests fix

str-mv2021-09-13parent: #159c438.patch.diff
in: master

1 file changed

modifiedtests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth
13 itWeb3 } from './util/helpers';13 itWeb3 } from './util/helpers';
14import waitNewBlocks from '../substrate/wait-new-blocks';14import waitNewBlocks from '../substrate/wait-new-blocks';
1515
16describe.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 });
188188
189 // 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);