diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-08 18:14:35 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-08 18:14:35 +0800 |
commit | 8311203f73bf6eff8bcac8d1fb72f9cf8b65c45b (patch) | |
tree | 5bd5de97b456b87741660a2ed80e412f76764924 /src/contract_wrappers/exchange_wrapper.ts | |
parent | c6645f9f4f470323086d9004cf603a68091d71a3 (diff) | |
download | dexon-0x-contracts-8311203f73bf6eff8bcac8d1fb72f9cf8b65c45b.tar dexon-0x-contracts-8311203f73bf6eff8bcac8d1fb72f9cf8b65c45b.tar.gz dexon-0x-contracts-8311203f73bf6eff8bcac8d1fb72f9cf8b65c45b.tar.bz2 dexon-0x-contracts-8311203f73bf6eff8bcac8d1fb72f9cf8b65c45b.tar.lz dexon-0x-contracts-8311203f73bf6eff8bcac8d1fb72f9cf8b65c45b.tar.xz dexon-0x-contracts-8311203f73bf6eff8bcac8d1fb72f9cf8b65c45b.tar.zst dexon-0x-contracts-8311203f73bf6eff8bcac8d1fb72f9cf8b65c45b.zip |
Refactor isValidSignature
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index d144d8aad..5b5d1e914 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -70,8 +70,8 @@ export class ExchangeWrapper extends ContractWrapper { await this.stopWatchingExchangeLogEventsAsync(); delete this.exchangeContractIfExists; } - public async isValidSignatureAsync(dataHex: string, ecSignature: ECSignature, - signerAddressHex: string): Promise<boolean> { + private async isValidSignatureUsingContractCallAsync(dataHex: string, ecSignature: ECSignature, + signerAddressHex: string): Promise<boolean> { assert.isHexString('dataHex', dataHex); assert.doesConformToSchema('ecSignature', ecSignature, ecSignatureSchema); assert.isETHAddressHex('signerAddressHex', signerAddressHex); |