diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 18:16:33 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 18:16:33 +0800 |
commit | cf63e1d1a6606c1b3ab82d5fec56df8ac4128eea (patch) | |
tree | 36732517bdd93c961b56f40138358df7cf8e528a /src | |
parent | 170dd91bfd2896e45a804240938dd8ca8219569e (diff) | |
download | dexon-sol-tools-cf63e1d1a6606c1b3ab82d5fec56df8ac4128eea.tar dexon-sol-tools-cf63e1d1a6606c1b3ab82d5fec56df8ac4128eea.tar.gz dexon-sol-tools-cf63e1d1a6606c1b3ab82d5fec56df8ac4128eea.tar.bz2 dexon-sol-tools-cf63e1d1a6606c1b3ab82d5fec56df8ac4128eea.tar.lz dexon-sol-tools-cf63e1d1a6606c1b3ab82d5fec56df8ac4128eea.tar.xz dexon-sol-tools-cf63e1d1a6606c1b3ab82d5fec56df8ac4128eea.tar.zst dexon-sol-tools-cf63e1d1a6606c1b3ab82d5fec56df8ac4128eea.zip |
Change BigNumber schema to Number schema
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/schema_validator.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/schema_validator.ts b/src/utils/schema_validator.ts index 0159b6b0b..5b2c4aaa5 100644 --- a/src/utils/schema_validator.ts +++ b/src/utils/schema_validator.ts @@ -1,14 +1,14 @@ import {Validator, ValidatorResult} from 'jsonschema'; import {ecSignatureSchema, ecSignatureParameter} from '../schemas/ec_signature_schema'; -import {addressSchema, bigNumberSchema, orderSchema, signedOrderSchema} from '../schemas/signed_order_schema'; +import {addressSchema, numberSchema, orderSchema, signedOrderSchema} from '../schemas/signed_order_schema'; export class SchemaValidator { private validator: Validator; constructor() { this.validator = new Validator(); this.validator.addSchema(orderSchema, orderSchema.id); + this.validator.addSchema(numberSchema, numberSchema.id); this.validator.addSchema(addressSchema, addressSchema.id); - this.validator.addSchema(bigNumberSchema, bigNumberSchema.id); this.validator.addSchema(ecSignatureSchema, ecSignatureSchema.id); this.validator.addSchema(signedOrderSchema, signedOrderSchema.id); this.validator.addSchema(ecSignatureParameter, ecSignatureParameter.id); |