aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-08 23:20:49 +0800
committerGitHub <noreply@github.com>2017-06-08 23:20:49 +0800
commitd7b5212b73457fec1bb49155936d777305eb362b (patch)
tree8484799a7e9823e490090b567746dc6b3f7d25c5 /src
parentb908df4a289db5164cca8d04f4b202db9139fcf8 (diff)
parent5513d011757c21c22164c0296f3d18fc5dbae204 (diff)
downloaddexon-sol-tools-d7b5212b73457fec1bb49155936d777305eb362b.tar
dexon-sol-tools-d7b5212b73457fec1bb49155936d777305eb362b.tar.gz
dexon-sol-tools-d7b5212b73457fec1bb49155936d777305eb362b.tar.bz2
dexon-sol-tools-d7b5212b73457fec1bb49155936d777305eb362b.tar.lz
dexon-sol-tools-d7b5212b73457fec1bb49155936d777305eb362b.tar.xz
dexon-sol-tools-d7b5212b73457fec1bb49155936d777305eb362b.tar.zst
dexon-sol-tools-d7b5212b73457fec1bb49155936d777305eb362b.zip
Merge pull request #47 from 0xProject/is-valid-signature-contract
Refactor isValidSignature
Diffstat (limited to 'src')
-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 2e1f887d8..72ae0d07e 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -71,8 +71,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);