aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-18 07:43:52 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-26 04:25:56 +0800
commit58d2b799d6adb8d8af7565af4b63e3a3c5748c10 (patch)
treed876fecf834edbb8605e28821d00867edaa4c25d /src/contract_wrappers
parentd9a8b961542dfbde0a736e1caea2de41d0e350cd (diff)
downloaddexon-sol-tools-58d2b799d6adb8d8af7565af4b63e3a3c5748c10.tar
dexon-sol-tools-58d2b799d6adb8d8af7565af4b63e3a3c5748c10.tar.gz
dexon-sol-tools-58d2b799d6adb8d8af7565af4b63e3a3c5748c10.tar.bz2
dexon-sol-tools-58d2b799d6adb8d8af7565af4b63e3a3c5748c10.tar.lz
dexon-sol-tools-58d2b799d6adb8d8af7565af4b63e3a3c5748c10.tar.xz
dexon-sol-tools-58d2b799d6adb8d8af7565af4b63e3a3c5748c10.tar.zst
dexon-sol-tools-58d2b799d6adb8d8af7565af4b63e3a3c5748c10.zip
Refactor OrderValidationUtils to check for the case when ZRX is one of the tokens traded
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 232531a83..f75f8d9bb 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -35,7 +35,7 @@ import {
import {assert} from '../utils/assert';
import {utils} from '../utils/utils';
import {eventUtils} from '../utils/event_utils';
-import {orderValidationUtils} from '../utils/order_validation_utils';
+import {OrderValidationUtils} from '../utils/order_validation_utils';
import {ContractWrapper} from './contract_wrapper';
import {ProxyWrapper} from './proxy_wrapper';
import {ecSignatureSchema} from '../schemas/ec_signature_schema';
@@ -668,7 +668,7 @@ export class ExchangeWrapper extends ContractWrapper {
throw new Error(ExchangeContractErrs.OrderFillExpired);
}
const zrxTokenAddress = await this._getZRXTokenAddressAsync(signedOrder.exchangeContractAddress);
- await orderValidationUtils.validateFillOrderBalancesAndAllowancesAndThrowIfInvalidAsync(
+ await OrderValidationUtils.validateFillOrderBalancesAndAllowancesAndThrowIfInvalidAsync(
this._tokenWrapper, signedOrder, fillTakerAmount, senderAddress, zrxTokenAddress,
);