diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-15 03:24:42 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-15 03:24:42 +0800 |
commit | 4d482438f554b50f3a5097d30ca37967b7aca994 (patch) | |
tree | a60fc243070697a1b9a85f4a684ba5e2cc82e5f6 /packages | |
parent | b53a1b51d6b7e6ec768b974f656329599585bee6 (diff) | |
download | dexon-sol-tools-4d482438f554b50f3a5097d30ca37967b7aca994.tar.gz dexon-sol-tools-4d482438f554b50f3a5097d30ca37967b7aca994.tar.zst dexon-sol-tools-4d482438f554b50f3a5097d30ca37967b7aca994.zip |
Access property over this
Diffstat (limited to 'packages')
-rw-r--r-- | packages/assert/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/assert/src/index.ts b/packages/assert/src/index.ts index 38b330a46..383cc2c42 100644 --- a/packages/assert/src/index.ts +++ b/packages/assert/src/index.ts @@ -69,7 +69,7 @@ export const assert = { this.assert(isWeb3Provider, this.typeAssertionMessage(variableName, 'Web3.Provider', value)); }, doesConformToSchema(variableName: string, value: any, schema: Schema): void { - const validationResult = assert.schemaValidator.validate(value, schema); + const validationResult = this.schemaValidator.validate(value, schema); const hasValidationErrors = validationResult.errors.length > 0; const msg = `Expected ${variableName} to conform to schema ${schema.id} Encountered: ${JSON.stringify(value, null, '\t')} |