Fix incorrect CancelUpTo event args

This commit is contained in:
Amir Bandeali 2019-05-07 21:40:05 -07:00
parent 8af253e9ab
commit 6b40812e6d
2 changed files with 3 additions and 3 deletions

View File

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

View File

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