diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-03-10 01:54:29 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:16 +0800 |
commit | 97232145a40778fa489a59f9ef0685117eb9d07f (patch) | |
tree | 1f639526f50b144ac06ad8df52ca0ef22348ebfa /packages | |
parent | 056ec6d2b381e3318fc9a894ae35a21209e9b87b (diff) | |
download | dexon-sol-tools-97232145a40778fa489a59f9ef0685117eb9d07f.tar dexon-sol-tools-97232145a40778fa489a59f9ef0685117eb9d07f.tar.gz dexon-sol-tools-97232145a40778fa489a59f9ef0685117eb9d07f.tar.bz2 dexon-sol-tools-97232145a40778fa489a59f9ef0685117eb9d07f.tar.lz dexon-sol-tools-97232145a40778fa489a59f9ef0685117eb9d07f.tar.xz dexon-sol-tools-97232145a40778fa489a59f9ef0685117eb9d07f.tar.zst dexon-sol-tools-97232145a40778fa489a59f9ef0685117eb9d07f.zip |
Fix package.json
Diffstat (limited to 'packages')
-rw-r--r-- | packages/contracts/src/utils/constants.ts | 10 | ||||
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/packages/contracts/src/utils/constants.ts b/packages/contracts/src/utils/constants.ts index 09dd65653..6f1fea2fc 100644 --- a/packages/contracts/src/utils/constants.ts +++ b/packages/contracts/src/utils/constants.ts @@ -4,6 +4,7 @@ const DUMMY_TOKEN_NAME = ''; const DUMMY_TOKEN_SYMBOL = ''; const DUMMY_TOKEN_DECIMALS = 18; const DUMMY_TOKEN_TOTAL_SUPPLY = 0; +const TESTRPC_INITIAL_BALANCE_HEX = parseInt('100000000000000000000', 16); export const constants = { INVALID_OPCODE: 'invalid opcode', @@ -14,22 +15,21 @@ export const constants = { MAX_TOKEN_APPROVE_GAS: 60000, DUMMY_TOKEN_ARGS: [DUMMY_TOKEN_NAME, DUMMY_TOKEN_SYMBOL, DUMMY_TOKEN_DECIMALS, DUMMY_TOKEN_TOTAL_SUPPLY], TESTRPC_PORT: 8545, - TESTRPC_INITIAL_BALANCE_HEX: parseInt('100000000000000000000', 16), TESTRPC_ACCOUNTS: [ { - balance: this.TESTRPC_INITIAL_BALANCE_HEX, + balance: TESTRPC_INITIAL_BALANCE_HEX, secretKey: ethUtil.sha3('secret0'), }, { - balance: this.TESTRPC_INITIAL_BALANCE_HEX, + balance: TESTRPC_INITIAL_BALANCE_HEX, secretKey: ethUtil.sha3('secret1'), }, { - balance: this.TESTRPC_INITIAL_BALANCE_HEX, + balance: TESTRPC_INITIAL_BALANCE_HEX, secretKey: ethUtil.sha3('secret2'), }, { - balance: this.TESTRPC_INITIAL_BALANCE_HEX, + balance: TESTRPC_INITIAL_BALANCE_HEX, secretKey: ethUtil.sha3('secret3'), }, ], diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index b68db3edc..9b8f9e1d2 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -492,7 +492,6 @@ describe('Exchange', () => { makerTokenAmount: ZeroEx.toBaseUnitAmount(new BigNumber(100), 18), takerTokenAmount: ZeroEx.toBaseUnitAmount(new BigNumber(200), 18), }); - return expect(exWrapper.fillOrderAsync(signedOrder, takerAddress)).to.be.rejectedWith(constants.REVERT); }); |