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
eca5bf91
Commit
eca5bf91
authored
Aug 08, 2018
by
barakman
Committed by
Nicolás Venturo
Aug 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deploy the contract with the designated owner (#1161)
* Deploy the contract with the designated owner * Fixed TX origin.
parent
a3e02be4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Claimable.test.js
test/ownership/Claimable.test.js
+3
-3
No files found.
test/ownership/Claimable.test.js
View file @
eca5bf91
...
@@ -6,11 +6,11 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) {
...
@@ -6,11 +6,11 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) {
let
claimable
;
let
claimable
;
beforeEach
(
async
function
()
{
beforeEach
(
async
function
()
{
claimable
=
await
Claimable
.
new
();
claimable
=
await
Claimable
.
new
(
{
from
:
owner
}
);
});
});
it
(
'changes pendingOwner after transfer'
,
async
function
()
{
it
(
'changes pendingOwner after transfer'
,
async
function
()
{
await
claimable
.
transferOwnership
(
newOwner
);
await
claimable
.
transferOwnership
(
newOwner
,
{
from
:
owner
}
);
const
pendingOwner
=
await
claimable
.
pendingOwner
();
const
pendingOwner
=
await
claimable
.
pendingOwner
();
assert
.
isTrue
(
pendingOwner
===
newOwner
);
assert
.
isTrue
(
pendingOwner
===
newOwner
);
...
@@ -26,7 +26,7 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) {
...
@@ -26,7 +26,7 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) {
describe
(
'after initiating a transfer'
,
function
()
{
describe
(
'after initiating a transfer'
,
function
()
{
beforeEach
(
async
function
()
{
beforeEach
(
async
function
()
{
await
claimable
.
transferOwnership
(
newOwner
);
await
claimable
.
transferOwnership
(
newOwner
,
{
from
:
owner
}
);
});
});
it
(
'changes allow pending owner to claim ownership'
,
async
function
()
{
it
(
'changes allow pending owner to claim ownership'
,
async
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