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
95092986
Commit
95092986
authored
Oct 27, 2016
by
Makoto Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change spec descriptions
parent
99f288bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Bounty.js
test/Bounty.js
+5
-5
No files found.
test/Bounty.js
View file @
95092986
...
@@ -33,7 +33,7 @@ contract('Bounty', function(accounts) {
...
@@ -33,7 +33,7 @@ contract('Bounty', function(accounts) {
then
(
done
);
then
(
done
);
})
})
it
(
"e
nds
"
,
function
(
done
){
it
(
"e
mpties itself when killed
"
,
function
(
done
){
var
target
=
SecureTargetMock
.
deployed
();
var
target
=
SecureTargetMock
.
deployed
();
var
owner
=
accounts
[
0
];
var
owner
=
accounts
[
0
];
var
reward
=
web3
.
toWei
(
1
,
"ether"
);
var
reward
=
web3
.
toWei
(
1
,
"ether"
);
...
@@ -51,7 +51,7 @@ contract('Bounty', function(accounts) {
...
@@ -51,7 +51,7 @@ contract('Bounty', function(accounts) {
then
(
done
);
then
(
done
);
})
})
describe
(
"
SecureTargetMock
"
,
function
(){
describe
(
"
Against secure contract
"
,
function
(){
it
(
"checkInvariant returns true"
,
function
(
done
){
it
(
"checkInvariant returns true"
,
function
(
done
){
var
targetFactory
=
SecureTargetFactory
.
deployed
();
var
targetFactory
=
SecureTargetFactory
.
deployed
();
var
bounty
;
var
bounty
;
...
@@ -69,7 +69,7 @@ contract('Bounty', function(accounts) {
...
@@ -69,7 +69,7 @@ contract('Bounty', function(accounts) {
then
(
done
);
then
(
done
);
})
})
it
(
"cannot c
al
im reward"
,
function
(
done
){
it
(
"cannot c
la
im reward"
,
function
(
done
){
var
targetFactory
=
SecureTargetFactory
.
deployed
();
var
targetFactory
=
SecureTargetFactory
.
deployed
();
var
owner
=
accounts
[
0
];
var
owner
=
accounts
[
0
];
var
researcher
=
accounts
[
1
];
var
researcher
=
accounts
[
1
];
...
@@ -104,7 +104,7 @@ contract('Bounty', function(accounts) {
...
@@ -104,7 +104,7 @@ contract('Bounty', function(accounts) {
})
})
})
})
describe
(
"
InsecureTargetMock
"
,
function
(){
describe
(
"
Against broken contract
"
,
function
(){
it
(
"checkInvariant returns false"
,
function
(
done
){
it
(
"checkInvariant returns false"
,
function
(
done
){
var
targetFactory
=
InsecureTargetFactory
.
deployed
();
var
targetFactory
=
InsecureTargetFactory
.
deployed
();
var
bounty
;
var
bounty
;
...
@@ -122,7 +122,7 @@ contract('Bounty', function(accounts) {
...
@@ -122,7 +122,7 @@ contract('Bounty', function(accounts) {
then
(
done
);
then
(
done
);
})
})
it
(
"c
al
ims reward"
,
function
(
done
){
it
(
"c
la
ims reward"
,
function
(
done
){
var
targetFactory
=
InsecureTargetFactory
.
deployed
();
var
targetFactory
=
InsecureTargetFactory
.
deployed
();
var
owner
=
accounts
[
0
];
var
owner
=
accounts
[
0
];
var
researcher
=
accounts
[
1
];
var
researcher
=
accounts
[
1
];
...
...
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