Fix deprecated expectEvent.inLogs #3332 (#3333)

This commit is contained in:
Niccolò Petti
2022-04-23 15:20:55 +02:00
committed by GitHub
parent 5a75065659
commit d4e6236b2b
16 changed files with 133 additions and 136 deletions

View File

@ -54,8 +54,8 @@ contract('RefundEscrow', function (accounts) {
'Ownable: caller is not the owner',
);
const { logs } = await this.escrow.close({ from: owner });
expectEvent.inLogs(logs, 'RefundsClosed');
const receipt = await this.escrow.close({ from: owner });
expectEvent(receipt, 'RefundsClosed');
});
context('closed state', function () {
@ -101,8 +101,8 @@ contract('RefundEscrow', function (accounts) {
'Ownable: caller is not the owner',
);
const { logs } = await this.escrow.enableRefunds({ from: owner });
expectEvent.inLogs(logs, 'RefundsEnabled');
const receipt = await this.escrow.enableRefunds({ from: owner });
expectEvent(receipt, 'RefundsEnabled');
});
context('refund state', function () {