Don't return contract response

This commit is contained in:
Leonid Logvinov 2017-05-31 15:56:52 +02:00
parent 76a1319387
commit 722a6ad5dc
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -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));