diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-08 17:45:54 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-08 17:45:54 +0800 |
commit | 2b50f8178ecbed98ff28b3adb29b87356ff48a3f (patch) | |
tree | fa4e2bd13ae121f01aa827af3692da98753d62c2 | |
parent | 6d560f1be1f317cbf4352e37d5a7259b2218065c (diff) | |
download | dexon-sol-tools-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar dexon-sol-tools-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.gz dexon-sol-tools-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.bz2 dexon-sol-tools-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.lz dexon-sol-tools-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.xz dexon-sol-tools-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.zst dexon-sol-tools-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.zip |
Use isSenderAddressAsync
-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 57becde24..94de45dd8 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -296,7 +296,7 @@ export class ExchangeWrapper extends ContractWrapper { SchemaValidator.convertToJSONSchemaCompatibleObject(order as object), orderSchema); assert.isBigNumber('takerTokenCancelAmount', takerTokenCancelAmount); - await assert.isSenderAddressAvailableAsync(this.web3Wrapper, 'order.maker', order.maker); + await assert.isSenderAddressAsync('order.maker', order.maker, this.web3Wrapper); const exchangeInstance = await this.getExchangeContractAsync(); await this.validateCancelOrderAndThrowIfInvalidAsync(order, takerTokenCancelAmount); @@ -332,7 +332,7 @@ export class ExchangeWrapper extends ContractWrapper { const makers = _.map(orderCancellationRequests, cancellationRequest => cancellationRequest.order.maker); assert.assert(_.uniq(makers).length === 1, ExchangeContractErrs.MULTIPLE_MAKERS_IN_SINGLE_CANCEL_BATCH); const maker = makers[0]; - await assert.isSenderAddressAvailableAsync(this.web3Wrapper, 'maker', maker); + await assert.isSenderAddressAsync('maker', maker, this.web3Wrapper); _.forEach(orderCancellationRequests, async (cancellationRequest: OrderCancellationRequest, i: number) => { assert.doesConformToSchema(`orderCancellationRequests[${i}].order`, |