aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-31 21:56:52 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-31 21:56:52 +0800
commit722a6ad5dce484ef5875132fd57970390c69e85d (patch)
tree75826e5276b89ff7638621b9ffbaf0405b88307e
parent76a1319387028c3389f10fdb7079aca1d19190ad (diff)
downloaddexon-sol-tools-722a6ad5dce484ef5875132fd57970390c69e85d.tar
dexon-sol-tools-722a6ad5dce484ef5875132fd57970390c69e85d.tar.gz
dexon-sol-tools-722a6ad5dce484ef5875132fd57970390c69e85d.tar.bz2
dexon-sol-tools-722a6ad5dce484ef5875132fd57970390c69e85d.tar.lz
dexon-sol-tools-722a6ad5dce484ef5875132fd57970390c69e85d.tar.xz
dexon-sol-tools-722a6ad5dce484ef5875132fd57970390c69e85d.tar.zst
dexon-sol-tools-722a6ad5dce484ef5875132fd57970390c69e85d.zip
Don't return contract response
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 0749a7e80..3f6210894 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -55,7 +55,7 @@ export class ExchangeWrapper extends ContractWrapper {
return isValidSignature;
}
public async fillOrderAsync(signedOrder: SignedOrder, fillAmount: BigNumber.BigNumber,
- shouldCheckTransfer: boolean = true): Promise<ContractResponse> {
+ shouldCheckTransfer: boolean = true): Promise<void> {
assert.doesConformToSchema('signedOrder', JSON.parse(JSON.stringify(signedOrder)), signedOrderSchema);
assert.isBigNumber('fillAmount', fillAmount);
assert.isBoolean('shouldCheckTransfer', shouldCheckTransfer);
@@ -93,7 +93,6 @@ export class ExchangeWrapper extends ContractWrapper {
},
);
this.throwErrorLogsAsErrors(response.logs);
- return response;
}
private async getExchangeInstanceOrThrowAsync(): Promise<ExchangeContract> {
const contractInstance = await this.instantiateContractIfExistsAsync((ExchangeArtifacts as any));