diff --git a/contracts/payment/RefundEscrow.sol b/contracts/payment/RefundEscrow.sol index c3770dbbb..3dfb3b965 100644 --- a/contracts/payment/RefundEscrow.sol +++ b/contracts/payment/RefundEscrow.sol @@ -11,7 +11,7 @@ import "./ConditionalEscrow.sol"; contract RefundEscrow is ConditionalEscrow { enum State { Active, Refunding, Closed } - event Closed(); + event RefundsClosed(); event RefundsEnabled(); State private _state; @@ -57,7 +57,7 @@ contract RefundEscrow is ConditionalEscrow { function close() public onlyPrimary { require(_state == State.Active); _state = State.Closed; - emit Closed(); + emit RefundsClosed(); } /** diff --git a/test/payment/RefundEscrow.test.js b/test/payment/RefundEscrow.test.js index 123da9d82..02a58a3b5 100644 --- a/test/payment/RefundEscrow.test.js +++ b/test/payment/RefundEscrow.test.js @@ -54,7 +54,7 @@ contract('RefundEscrow', function ([_, primary, beneficiary, refundee1, refundee await shouldFail.reverting(this.escrow.close({ from: beneficiary })); const { logs } = await this.escrow.close({ from: primary }); - expectEvent.inLogs(logs, 'Closed'); + expectEvent.inLogs(logs, 'RefundsClosed'); }); context('closed state', function () {