diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-29 17:34:38 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-29 17:34:38 +0800 |
commit | aa2616b307d3384791f1dbafc76999e7c4cf801f (patch) | |
tree | 0d8f11f66dcd595fefb184dd0dabc2d69183b782 /packages/contracts/test/exchange/wrapper.ts | |
parent | 3062c18ebda8e55831038f140313000fd6d2cf71 (diff) | |
parent | 518a2da0275632a5dd61f99a105163ff5a074927 (diff) | |
download | dexon-sol-tools-aa2616b307d3384791f1dbafc76999e7c4cf801f.tar dexon-sol-tools-aa2616b307d3384791f1dbafc76999e7c4cf801f.tar.gz dexon-sol-tools-aa2616b307d3384791f1dbafc76999e7c4cf801f.tar.bz2 dexon-sol-tools-aa2616b307d3384791f1dbafc76999e7c4cf801f.tar.lz dexon-sol-tools-aa2616b307d3384791f1dbafc76999e7c4cf801f.tar.xz dexon-sol-tools-aa2616b307d3384791f1dbafc76999e7c4cf801f.tar.zst dexon-sol-tools-aa2616b307d3384791f1dbafc76999e7c4cf801f.zip |
Merge v2-prototype
Diffstat (limited to 'packages/contracts/test/exchange/wrapper.ts')
-rw-r--r-- | packages/contracts/test/exchange/wrapper.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/contracts/test/exchange/wrapper.ts b/packages/contracts/test/exchange/wrapper.ts index 9ee68f94d..1af8bde9d 100644 --- a/packages/contracts/test/exchange/wrapper.ts +++ b/packages/contracts/test/exchange/wrapper.ts @@ -60,12 +60,16 @@ describe('Exchange wrappers', () => { }); before(async () => { const accounts = await web3Wrapper.getAvailableAddressesAsync(); - const usedAddresses = ([owner, makerAddress, takerAddress, feeRecipientAddress] = accounts); + const usedAddresses = ([owner, makerAddress, takerAddress, feeRecipientAddress] = _.slice(accounts, 0, 4)); erc20Wrapper = new ERC20Wrapper(provider, usedAddresses, owner); erc721Wrapper = new ERC721Wrapper(provider, usedAddresses, owner); - [erc20TokenA, erc20TokenB, zrxToken] = await erc20Wrapper.deployDummyTokensAsync(); + const numDummyErc20ToDeploy = 3; + [erc20TokenA, erc20TokenB, zrxToken] = await erc20Wrapper.deployDummyTokensAsync( + numDummyErc20ToDeploy, + constants.DUMMY_TOKEN_DECIMALS, + ); erc20Proxy = await erc20Wrapper.deployProxyAsync(); await erc20Wrapper.setBalancesAndAllowancesAsync(); @@ -370,7 +374,7 @@ describe('Exchange wrappers', () => { // HACK(albrow): We need to hardcode the gas estimate here because // the Geth gas estimator doesn't work with the way we use // delegatecall and swallow errors. - gas: 270000, + gas: 280000, }); // Verify post-conditions const newOwnerMakerAsset = await erc721Token.ownerOf.callAsync(makerAssetId); |