diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-04-23 06:18:55 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-24 00:57:13 +0800 |
commit | afb02b8bd16758f00d630c9ce6cf3bbc49ab307d (patch) | |
tree | fd7a80ae1451818d9794e21d265e84ed793720c8 /packages/contracts/test/unlimited_allowance_token.ts | |
parent | 48b44342ab1642a78d0485e111019acfdbbfdfd5 (diff) | |
download | dexon-0x-contracts-afb02b8bd16758f00d630c9ce6cf3bbc49ab307d.tar.gz dexon-0x-contracts-afb02b8bd16758f00d630c9ce6cf3bbc49ab307d.tar.zst dexon-0x-contracts-afb02b8bd16758f00d630c9ce6cf3bbc49ab307d.zip |
Fix and cleanup tests
Diffstat (limited to 'packages/contracts/test/unlimited_allowance_token.ts')
-rw-r--r-- | packages/contracts/test/unlimited_allowance_token.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/contracts/test/unlimited_allowance_token.ts b/packages/contracts/test/unlimited_allowance_token.ts index f2284685f..f40708dbd 100644 --- a/packages/contracts/test/unlimited_allowance_token.ts +++ b/packages/contracts/test/unlimited_allowance_token.ts @@ -20,10 +20,9 @@ const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper); describe('UnlimitedAllowanceToken', () => { let owner: string; let spender: string; - const config = { + const zeroEx = new ZeroEx(provider, { networkId: constants.TESTRPC_NETWORK_ID, - }; - const zeroEx = new ZeroEx(provider, config); + }); const MAX_MINT_VALUE = new BigNumber(100000000000000000000); let tokenAddress: string; @@ -33,7 +32,10 @@ describe('UnlimitedAllowanceToken', () => { const accounts = await web3Wrapper.getAvailableAddressesAsync(); owner = accounts[0]; spender = accounts[1]; - const tokenInstance = await deployer.deployAsync(ContractName.DummyERC20Token, constants.DUMMY_TOKEN_ARGS); + const tokenInstance = await deployer.deployAsync( + ContractName.DummyERC20Token, + constants.DUMMY_ERC20_TOKEN_ARGS, + ); token = new DummyERC20TokenContract(tokenInstance.abi, tokenInstance.address, provider); await token.mint.sendTransactionAsync(MAX_MINT_VALUE, { from: owner }); tokenAddress = token.address; |