Fix incorrect CancelUpTo event args
This commit is contained in:
parent
8af253e9ab
commit
6b40812e6d
@ -523,7 +523,7 @@ describe('Coordinator tests', () => {
|
|||||||
expect(cancelLogs.length).to.eq(1);
|
expect(cancelLogs.length).to.eq(1);
|
||||||
const cancelLogArgs = (cancelLogs[0] as LogWithDecodedArgs<ExchangeCancelUpToEventArgs>).args;
|
const cancelLogArgs = (cancelLogs[0] as LogWithDecodedArgs<ExchangeCancelUpToEventArgs>).args;
|
||||||
expect(cancelLogArgs.makerAddress).to.eq(makerAddress);
|
expect(cancelLogArgs.makerAddress).to.eq(makerAddress);
|
||||||
expect(cancelLogArgs.senderAddress).to.eq(coordinatorContract.address);
|
expect(cancelLogArgs.orderSenderAddress).to.eq(coordinatorContract.address);
|
||||||
expect(cancelLogArgs.orderEpoch).to.bignumber.eq(targetEpoch.plus(1));
|
expect(cancelLogArgs.orderEpoch).to.bignumber.eq(targetEpoch.plus(1));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -480,7 +480,7 @@ describe('Exchange transactions', () => {
|
|||||||
expect(cancelLogs.length).to.eq(1);
|
expect(cancelLogs.length).to.eq(1);
|
||||||
const cancelLogArgs = (cancelLogs[0] as LogWithDecodedArgs<ExchangeCancelUpToEventArgs>).args;
|
const cancelLogArgs = (cancelLogs[0] as LogWithDecodedArgs<ExchangeCancelUpToEventArgs>).args;
|
||||||
expect(cancelLogArgs.makerAddress).to.eq(makerAddress);
|
expect(cancelLogArgs.makerAddress).to.eq(makerAddress);
|
||||||
expect(cancelLogArgs.senderAddress).to.eq(senderAddress);
|
expect(cancelLogArgs.orderSenderAddress).to.eq(senderAddress);
|
||||||
expect(cancelLogArgs.orderEpoch).to.bignumber.eq(targetEpoch.plus(1));
|
expect(cancelLogArgs.orderEpoch).to.bignumber.eq(targetEpoch.plus(1));
|
||||||
});
|
});
|
||||||
it('should be successful if called by maker without a signature', async () => {
|
it('should be successful if called by maker without a signature', async () => {
|
||||||
@ -494,7 +494,7 @@ describe('Exchange transactions', () => {
|
|||||||
expect(cancelLogs.length).to.eq(1);
|
expect(cancelLogs.length).to.eq(1);
|
||||||
const cancelLogArgs = (cancelLogs[0] as LogWithDecodedArgs<ExchangeCancelUpToEventArgs>).args;
|
const cancelLogArgs = (cancelLogs[0] as LogWithDecodedArgs<ExchangeCancelUpToEventArgs>).args;
|
||||||
expect(cancelLogArgs.makerAddress).to.eq(makerAddress);
|
expect(cancelLogArgs.makerAddress).to.eq(makerAddress);
|
||||||
expect(cancelLogArgs.senderAddress).to.eq(constants.NULL_ADDRESS);
|
expect(cancelLogArgs.orderSenderAddress).to.eq(constants.NULL_ADDRESS);
|
||||||
expect(cancelLogArgs.orderEpoch).to.bignumber.eq(targetEpoch.plus(1));
|
expect(cancelLogArgs.orderEpoch).to.bignumber.eq(targetEpoch.plus(1));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user