Update docs

This commit is contained in:
github-actions
2022-06-29 09:01:40 +00:00
parent 0627757030
commit 1722dabc84
141 changed files with 14658 additions and 6699 deletions

View File

@ -26,8 +26,8 @@ function shouldBehaveLikeEscrow (owner, [payee1, payee2]) {
});
it('emits a deposited event', async function () {
const { logs } = await this.escrow.deposit(payee1, { from: owner, value: amount });
expectEvent.inLogs(logs, 'Deposited', {
const receipt = await this.escrow.deposit(payee1, { from: owner, value: amount });
expectEvent(receipt, 'Deposited', {
payee: payee1,
weiAmount: amount,
});
@ -79,8 +79,8 @@ function shouldBehaveLikeEscrow (owner, [payee1, payee2]) {
it('emits a withdrawn event', async function () {
await this.escrow.deposit(payee1, { from: owner, value: amount });
const { logs } = await this.escrow.withdraw(payee1, { from: owner });
expectEvent.inLogs(logs, 'Withdrawn', {
const receipt = await this.escrow.withdraw(payee1, { from: owner });
expectEvent(receipt, 'Withdrawn', {
payee: payee1,
weiAmount: amount,
});

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 () {