Don't return contract response
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user