diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-26 02:12:55 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-26 02:12:55 +0800 |
commit | f75595c6cd2a3edebca37d7d0063538116844074 (patch) | |
tree | 2e647b6fbbf86b3ca4bc291a8e3b60c10184f5b2 /src/ts | |
parent | 8e35923d6e2c6ed5347a34e7147067906f8c2fe5 (diff) | |
download | dexon-sol-tools-f75595c6cd2a3edebca37d7d0063538116844074.tar dexon-sol-tools-f75595c6cd2a3edebca37d7d0063538116844074.tar.gz dexon-sol-tools-f75595c6cd2a3edebca37d7d0063538116844074.tar.bz2 dexon-sol-tools-f75595c6cd2a3edebca37d7d0063538116844074.tar.lz dexon-sol-tools-f75595c6cd2a3edebca37d7d0063538116844074.tar.xz dexon-sol-tools-f75595c6cd2a3edebca37d7d0063538116844074.tar.zst dexon-sol-tools-f75595c6cd2a3edebca37d7d0063538116844074.zip |
Change the order of params in isValidSignatureAsync to be consistent
Diffstat (limited to 'src/ts')
-rw-r--r-- | src/ts/contract_wrappers/exchange_wrapper.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ts/contract_wrappers/exchange_wrapper.ts b/src/ts/contract_wrappers/exchange_wrapper.ts index 502a1089b..5a576a7fa 100644 --- a/src/ts/contract_wrappers/exchange_wrapper.ts +++ b/src/ts/contract_wrappers/exchange_wrapper.ts @@ -3,17 +3,17 @@ import {Web3Wrapper} from '../web3_wrapper'; import {ECSignature, ZeroExError, ExchangeContract} from '../types'; import {assert} from '../utils/assert'; import {ContractWrapper} from './contract_wrapper'; -import * as ExchangeArtifacts from '../artifacts/Exchange.json'; +import * as ExchangeArtifacts from '../../artifacts/Exchange.json'; import {ECSignatureSchema} from '../schemas/ec_signature_schema'; export class ExchangeWrapper extends ContractWrapper { constructor(web3Wrapper: Web3Wrapper) { super(web3Wrapper); } - public async isValidSignatureAsync(maker: string, ecSignature: ECSignature, dataHex: string) { - assert.isString('maker', maker); - assert.doesConformToSchema('ecSignature', ecSignature, ECSignatureSchema); + public async isValidSignatureAsync(dataHex: string, ecSignature: ECSignature, maker: string) { assert.isHexString('dataHex', dataHex); + assert.doesConformToSchema('ecSignature', ecSignature, ECSignatureSchema); + assert.isString('maker', maker); const senderAddressIfExists = this.web3Wrapper.getSenderAddressIfExistsAsync(); assert.assert(!_.isUndefined(senderAddressIfExists), ZeroExError.USER_HAS_NO_ASSOCIATED_ADDRESSES); |