Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
e990525c
Commit
e990525c
authored
Oct 16, 2018
by
Aniket
Committed by
Leo Arias
Oct 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RefundEscrow's events renamed (#1418)
* fixes #1414 (cherry picked from commit
844a96d0
)
parent
2c40ffa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
RefundEscrow.sol
contracts/payment/RefundEscrow.sol
+2
-2
RefundEscrow.test.js
test/payment/RefundEscrow.test.js
+1
-1
No files found.
contracts/payment/RefundEscrow.sol
View file @
e990525c
...
...
@@ -11,7 +11,7 @@ import "./ConditionalEscrow.sol";
contract RefundEscrow is ConditionalEscrow {
enum State { Active, Refunding, Closed }
event Closed();
event
Refunds
Closed();
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
Refunds
Closed();
}
/**
...
...
test/payment/RefundEscrow.test.js
View file @
e990525c
...
...
@@ -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
,
'
Refunds
Closed'
);
});
context
(
'closed state'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment