aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-08 17:45:54 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-08 17:45:54 +0800
commit2b50f8178ecbed98ff28b3adb29b87356ff48a3f (patch)
treefa4e2bd13ae121f01aa827af3692da98753d62c2 /src
parent6d560f1be1f317cbf4352e37d5a7259b2218065c (diff)
downloaddexon-0x-contracts-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar
dexon-0x-contracts-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.gz
dexon-0x-contracts-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.bz2
dexon-0x-contracts-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.lz
dexon-0x-contracts-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.xz
dexon-0x-contracts-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.tar.zst
dexon-0x-contracts-2b50f8178ecbed98ff28b3adb29b87356ff48a3f.zip
Use isSenderAddressAsync
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 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`,