diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-19 23:38:15 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-19 23:38:15 +0800 |
commit | 9acf4458c026ca9e2748ca4291573ac95c66fe26 (patch) | |
tree | 1e137e009863ce74ae73b6261e873ff888cccd44 /packages/contracts/src | |
parent | 70de264d4dd96efce2719c209c4b866c93668877 (diff) | |
download | dexon-0x-contracts-9acf4458c026ca9e2748ca4291573ac95c66fe26.tar dexon-0x-contracts-9acf4458c026ca9e2748ca4291573ac95c66fe26.tar.gz dexon-0x-contracts-9acf4458c026ca9e2748ca4291573ac95c66fe26.tar.bz2 dexon-0x-contracts-9acf4458c026ca9e2748ca4291573ac95c66fe26.tar.lz dexon-0x-contracts-9acf4458c026ca9e2748ca4291573ac95c66fe26.tar.xz dexon-0x-contracts-9acf4458c026ca9e2748ca4291573ac95c66fe26.tar.zst dexon-0x-contracts-9acf4458c026ca9e2748ca4291573ac95c66fe26.zip |
Remove hack in ERC20Wrapper
Diffstat (limited to 'packages/contracts/src')
-rw-r--r-- | packages/contracts/src/utils/erc20_wrapper.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/contracts/src/utils/erc20_wrapper.ts b/packages/contracts/src/utils/erc20_wrapper.ts index ca2ca492b..6dd717f4a 100644 --- a/packages/contracts/src/utils/erc20_wrapper.ts +++ b/packages/contracts/src/utils/erc20_wrapper.ts @@ -27,11 +27,11 @@ export class ERC20Wrapper { this._tokenOwnerAddresses = tokenOwnerAddresses; this._contractOwnerAddress = contractOwnerAddress; } - public async deployDummyTokensAsync(num?: number, decimals?: BigNumber): Promise<DummyERC20TokenContract[]> { - // TODO(fabio): Remove and refactor all tests - const finalNum = _.isUndefined(num) ? constants.NUM_DUMMY_ERC20_TO_DEPLOY : num; - const finalDecimals = _.isUndefined(decimals) ? constants.DUMMY_TOKEN_DECIMALS : decimals; - for (let i = 0; i < finalNum; i++) { + public async deployDummyTokensAsync( + numberToDeploy: number, + decimals: BigNumber, + ): Promise<DummyERC20TokenContract[]> { + for (let i = 0; i < numberToDeploy; i++) { this._dummyTokenContracts.push( await DummyERC20TokenContract.deployFrom0xArtifactAsync( artifacts.DummyERC20Token, @@ -39,7 +39,7 @@ export class ERC20Wrapper { txDefaults, constants.DUMMY_TOKEN_NAME, constants.DUMMY_TOKEN_SYMBOL, - finalDecimals, + decimals, constants.DUMMY_TOKEN_TOTAL_SUPPLY, ), ); |