Don't return contract response

This commit is contained in:
Leonid Logvinov
2017-05-31 15:56:52 +02:00
parent 76a1319387
commit 722a6ad5dc

View File

@@ -55,7 +55,7 @@ export class ExchangeWrapper extends ContractWrapper {
return isValidSignature; return isValidSignature;
} }
public async fillOrderAsync(signedOrder: SignedOrder, fillAmount: BigNumber.BigNumber, 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.doesConformToSchema('signedOrder', JSON.parse(JSON.stringify(signedOrder)), signedOrderSchema);
assert.isBigNumber('fillAmount', fillAmount); assert.isBigNumber('fillAmount', fillAmount);
assert.isBoolean('shouldCheckTransfer', shouldCheckTransfer); assert.isBoolean('shouldCheckTransfer', shouldCheckTransfer);
@@ -93,7 +93,6 @@ export class ExchangeWrapper extends ContractWrapper {
}, },
); );
this.throwErrorLogsAsErrors(response.logs); this.throwErrorLogsAsErrors(response.logs);
return response;
} }
private async getExchangeInstanceOrThrowAsync(): Promise<ExchangeContract> { private async getExchangeInstanceOrThrowAsync(): Promise<ExchangeContract> {
const contractInstance = await this.instantiateContractIfExistsAsync((ExchangeArtifacts as any)); const contractInstance = await this.instantiateContractIfExistsAsync((ExchangeArtifacts as any));