aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-09 17:15:26 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-09 17:15:26 +0800
commit77174341d2498f772b60554fdc29100e001415c6 (patch)
tree43628c294fdce143e60feb91c1c38b11dc2b0410
parent71be75e0ed5a7e930bcb2fe8aa06ab1ec033fdee (diff)
downloaddexon-sol-tools-77174341d2498f772b60554fdc29100e001415c6.tar
dexon-sol-tools-77174341d2498f772b60554fdc29100e001415c6.tar.gz
dexon-sol-tools-77174341d2498f772b60554fdc29100e001415c6.tar.bz2
dexon-sol-tools-77174341d2498f772b60554fdc29100e001415c6.tar.lz
dexon-sol-tools-77174341d2498f772b60554fdc29100e001415c6.tar.xz
dexon-sol-tools-77174341d2498f772b60554fdc29100e001415c6.tar.zst
dexon-sol-tools-77174341d2498f772b60554fdc29100e001415c6.zip
Make static function public
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts1
-rw-r--r--src/utils/schema_validator.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index aaabd585f..be6234ff9 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -30,7 +30,6 @@ import * as ExchangeArtifacts from '../artifacts/Exchange.json';
import {ecSignatureSchema} from '../schemas/ec_signature_schema';
import {orderFillOrKillRequestsSchema} from '../schemas/order_fill_or_kill_requests_schema';
import {signedOrderSchema, orderSchema} from '../schemas/order_schemas';
-import {SchemaValidator} from '../utils/schema_validator';
import {constants} from '../utils/constants';
import {TokenWrapper} from './token_wrapper';
diff --git a/src/utils/schema_validator.ts b/src/utils/schema_validator.ts
index 41c4696d6..786dca624 100644
--- a/src/utils/schema_validator.ts
+++ b/src/utils/schema_validator.ts
@@ -11,7 +11,7 @@ export class SchemaValidator {
// sub-types (e.g BigNumber) with a simpler string representation. Since BigNumber and other
// complex types implement the `toString` method, we can stringify the object and
// then parse it. The resultant object can then be checked using jsonschema.
- private static convertToJSONSchemaCompatibleObject(obj: any): any {
+ static convertToJSONSchemaCompatibleObject(obj: any): any {
return JSON.parse(JSON.stringify(obj));
}
constructor() {