diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-01 22:11:25 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-01 22:12:40 +0800 |
commit | 771c88ec791cb6bedf2ddd3418e89dec1581e326 (patch) | |
tree | 9b6d2a590d5a4d39cfd89c630bbeb774e75fc7d9 /test/utils | |
parent | a1041348d5695ee3b84433e9874176e85543a4e0 (diff) | |
download | dexon-sol-tools-771c88ec791cb6bedf2ddd3418e89dec1581e326.tar dexon-sol-tools-771c88ec791cb6bedf2ddd3418e89dec1581e326.tar.gz dexon-sol-tools-771c88ec791cb6bedf2ddd3418e89dec1581e326.tar.bz2 dexon-sol-tools-771c88ec791cb6bedf2ddd3418e89dec1581e326.tar.lz dexon-sol-tools-771c88ec791cb6bedf2ddd3418e89dec1581e326.tar.xz dexon-sol-tools-771c88ec791cb6bedf2ddd3418e89dec1581e326.tar.zst dexon-sol-tools-771c88ec791cb6bedf2ddd3418e89dec1581e326.zip |
Revert "Add EXPIRED test"
This reverts commit d8e35c364ea94b606810b340fb02d8706e257c3c.
Diffstat (limited to 'test/utils')
-rw-r--r-- | test/utils/order_factory.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/utils/order_factory.ts b/test/utils/order_factory.ts index c6c6ed927..e41e973ee 100644 --- a/test/utils/order_factory.ts +++ b/test/utils/order_factory.ts @@ -14,14 +14,10 @@ export const orderFactory = { makerTokenAmount: BigNumber.BigNumber|number, makerTokenAddress: string, takerTokenAmount: BigNumber.BigNumber|number, - takerTokenAddress: string, - expirationUnixTimestampSec?: BigNumber.BigNumber): Promise<SignedOrder> { + takerTokenAddress: string): Promise<SignedOrder> { // TODO refactor and check const exchangeAddress: string = (ExchangeArtifacts as any).networks[networkId].address; - const INF_TIMESTAMP = new BigNumber(2524604400); - expirationUnixTimestampSec = _.isUndefined(expirationUnixTimestampSec) ? - INF_TIMESTAMP : - expirationUnixTimestampSec; + const INF_TIMESTAMP = 2524604400; const order = { maker, taker, @@ -33,7 +29,7 @@ export const orderFactory = { takerTokenAddress, salt: ZeroEx.generatePseudoRandomSalt(), feeRecipient: constants.NULL_ADDRESS, - expirationUnixTimestampSec, + expirationUnixTimestampSec: new BigNumber(INF_TIMESTAMP), }; const orderHash = ZeroEx.getOrderHashHex(exchangeAddress, order); const ecSignature = await zeroEx.signOrderHashAsync(orderHash); |