aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 22:11:25 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 22:12:40 +0800
commit771c88ec791cb6bedf2ddd3418e89dec1581e326 (patch)
tree9b6d2a590d5a4d39cfd89c630bbeb774e75fc7d9 /src/contract_wrappers
parenta1041348d5695ee3b84433e9874176e85543a4e0 (diff)
downloaddexon-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 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 1232b969b..dbb427d2c 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -120,9 +120,6 @@ export class ExchangeWrapper extends ContractWrapper {
if (signedOrder.taker !== constants.NULL_ADDRESS && signedOrder.taker !== senderAddress) {
throw new Error(FillOrderValidationErrs.NOT_A_TAKER);
}
- if (signedOrder.expirationUnixTimestampSec.lessThan(Date.now() / 1000)) {
- throw new Error(FillOrderValidationErrs.EXPIRED);
- }
}
private async getExchangeInstanceOrThrowAsync(): Promise<ExchangeContract> {
const contractInstance = await this.instantiateContractIfExistsAsync((ExchangeArtifacts as any));