diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-04-05 19:52:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 19:52:43 +0800 |
commit | 7f7ddee0f95f3ed3e903c230088dbee4648771bd (patch) | |
tree | cbaae6089347793d7b205d696d517cf2e1de38ab /packages/0x.js/test/utils/fill_scenarios.ts | |
parent | 674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf (diff) | |
parent | b99c797945dacae09be1e1e2d58f806423fedffa (diff) | |
download | dexon-0x-contracts-7f7ddee0f95f3ed3e903c230088dbee4648771bd.tar dexon-0x-contracts-7f7ddee0f95f3ed3e903c230088dbee4648771bd.tar.gz dexon-0x-contracts-7f7ddee0f95f3ed3e903c230088dbee4648771bd.tar.bz2 dexon-0x-contracts-7f7ddee0f95f3ed3e903c230088dbee4648771bd.tar.lz dexon-0x-contracts-7f7ddee0f95f3ed3e903c230088dbee4648771bd.tar.xz dexon-0x-contracts-7f7ddee0f95f3ed3e903c230088dbee4648771bd.tar.zst dexon-0x-contracts-7f7ddee0f95f3ed3e903c230088dbee4648771bd.zip |
Merge pull request #501 from 0xProject/feature/provider-over-wrapper
Use Provider over web3Wrapper
Diffstat (limited to 'packages/0x.js/test/utils/fill_scenarios.ts')
-rw-r--r-- | packages/0x.js/test/utils/fill_scenarios.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/0x.js/test/utils/fill_scenarios.ts b/packages/0x.js/test/utils/fill_scenarios.ts index 8b1308298..7d0e8c501 100644 --- a/packages/0x.js/test/utils/fill_scenarios.ts +++ b/packages/0x.js/test/utils/fill_scenarios.ts @@ -36,7 +36,12 @@ export class FillScenarios { for (const token of this._tokens) { if (token.symbol !== 'ZRX' && token.symbol !== 'WETH') { const defaults = {}; - const dummyToken = new DummyTokenContract(web3Wrapper, artifacts.DummyTokenArtifact.abi, token.address); + const dummyToken = new DummyTokenContract( + artifacts.DummyTokenArtifact.abi, + token.address, + web3Wrapper.getProvider(), + web3Wrapper.getContractDefaults(), + ); const tokenSupply = ZeroEx.toBaseUnitAmount(INITIAL_COINBASE_TOKEN_SUPPLY_IN_UNITS, token.decimals); const txHash = await dummyToken.setBalance.sendTransactionAsync(this._coinbase, tokenSupply, { from: this._coinbase, |