Update comments
This commit is contained in:
@@ -1141,7 +1141,8 @@ export class ExchangeWrapper extends ContractWrapper {
|
|||||||
* Validate if the supplied order is fillable, and throw if it isn't
|
* Validate if the supplied order is fillable, and throw if it isn't
|
||||||
* @param signedOrder SignedOrder of interest
|
* @param signedOrder SignedOrder of interest
|
||||||
* @param opts ValidateOrderFillableOpts options (e.g expectedFillTakerTokenAmount.
|
* @param opts ValidateOrderFillableOpts options (e.g expectedFillTakerTokenAmount.
|
||||||
* If it isn't supplied, we check if the order is fillable for a non-zero amount)
|
* If it isn't supplied, we check if the order is fillable for the remaining amount.
|
||||||
|
* To check if the order is fillable for any amount set validateRemainingOrderAmountIsFillable to false.)
|
||||||
*/
|
*/
|
||||||
public async validateOrderFillableOrThrowAsync(
|
public async validateOrderFillableOrThrowAsync(
|
||||||
signedOrder: SignedOrder,
|
signedOrder: SignedOrder,
|
||||||
|
@@ -282,7 +282,7 @@ describe('ExchangeWrapper', () => {
|
|||||||
expect(ordersInfo[1].orderHash).to.be.equal(anotherOrderHash);
|
expect(ordersInfo[1].orderHash).to.be.equal(anotherOrderHash);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe.only('#validateOrderFillableOrThrowAsync', () => {
|
describe('#validateOrderFillableOrThrowAsync', () => {
|
||||||
it('should throw if signature is invalid', async () => {
|
it('should throw if signature is invalid', async () => {
|
||||||
const signedOrderWithInvalidSignature = {
|
const signedOrderWithInvalidSignature = {
|
||||||
...signedOrder,
|
...signedOrder,
|
||||||
|
Reference in New Issue
Block a user