From e990525c2e20bf7f254c34569d56f5719f8fe704 Mon Sep 17 00:00:00 2001 From: Aniket <30843294+Aniket-Engg@users.noreply.github.com> Date: Tue, 16 Oct 2018 19:07:04 +0530 Subject: [PATCH] RefundEscrow's events renamed (#1418) * fixes #1414 (cherry picked from commit 844a96d0b9419f5057bcae018b2a1974f075bc9d) --- contracts/payment/RefundEscrow.sol | 4 ++-- test/payment/RefundEscrow.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 () {