aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-24 03:35:44 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-28 04:05:23 +0800
commit2d561bc8a05e8d1fca91cde93bae2080d87be926 (patch)
tree10d785eff73c67ecae09a337ed3721ff6b6102a9 /packages/0x.js/test
parentf5275d3ad75d2a989556de99cdef82bcf2cd687c (diff)
downloaddexon-sol-tools-2d561bc8a05e8d1fca91cde93bae2080d87be926.tar
dexon-sol-tools-2d561bc8a05e8d1fca91cde93bae2080d87be926.tar.gz
dexon-sol-tools-2d561bc8a05e8d1fca91cde93bae2080d87be926.tar.bz2
dexon-sol-tools-2d561bc8a05e8d1fca91cde93bae2080d87be926.tar.lz
dexon-sol-tools-2d561bc8a05e8d1fca91cde93bae2080d87be926.tar.xz
dexon-sol-tools-2d561bc8a05e8d1fca91cde93bae2080d87be926.tar.zst
dexon-sol-tools-2d561bc8a05e8d1fca91cde93bae2080d87be926.zip
Allow users to specify the contracts backend in abi-gen
Diffstat (limited to 'packages/0x.js/test')
-rw-r--r--packages/0x.js/test/utils/fill_scenarios.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/0x.js/test/utils/fill_scenarios.ts b/packages/0x.js/test/utils/fill_scenarios.ts
index 1a61487f4..8b1308298 100644
--- a/packages/0x.js/test/utils/fill_scenarios.ts
+++ b/packages/0x.js/test/utils/fill_scenarios.ts
@@ -35,12 +35,8 @@ export class FillScenarios {
const web3Wrapper = (this._zeroEx as any)._web3Wrapper as Web3Wrapper;
for (const token of this._tokens) {
if (token.symbol !== 'ZRX' && token.symbol !== 'WETH') {
- const contractInstance = web3Wrapper.getContractInstance(
- artifacts.DummyTokenArtifact.abi,
- token.address,
- );
const defaults = {};
- const dummyToken = new DummyTokenContract(contractInstance, defaults);
+ const dummyToken = new DummyTokenContract(web3Wrapper, artifacts.DummyTokenArtifact.abi, token.address);
const tokenSupply = ZeroEx.toBaseUnitAmount(INITIAL_COINBASE_TOKEN_SUPPLY_IN_UNITS, token.decimals);
const txHash = await dummyToken.setBalance.sendTransactionAsync(this._coinbase, tokenSupply, {
from: this._coinbase,