Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
fb884373
Commit
fb884373
authored
Apr 09, 2021
by
smartcontracts
Committed by
GitHub
Apr 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: Minor cleanup to lib_ownable (#373)
Co-authored-by:
Maurelian
<
maurelian@protonmail.ch
>
parent
5ad62a7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
Lib_Ownable.sol
...ts/optimistic-ethereum/libraries/resolver/Lib_Ownable.sol
+12
-1
No files found.
packages/contracts/contracts/optimistic-ethereum/libraries/resolver/Lib_Ownable.sol
View file @
fb884373
...
@@ -51,6 +51,10 @@ abstract contract Ownable {
...
@@ -51,6 +51,10 @@ abstract contract Ownable {
* Public Functions *
* Public Functions *
********************/
********************/
/**
* Sets the owner of this contract to the zero address, effectively renouncing ownership
* completely. Can only be called by the current owner of this contract.
*/
function renounceOwnership()
function renounceOwnership()
public
public
virtual
virtual
...
@@ -60,7 +64,14 @@ abstract contract Ownable {
...
@@ -60,7 +64,14 @@ abstract contract Ownable {
owner = address(0);
owner = address(0);
}
}
function transferOwnership(address _newOwner)
/**
* Transfers ownership of this contract to a new address. Can only be called by the current
* owner of this contract.
* @param _newOwner Address of the new contract owner.
*/
function transferOwnership(
address _newOwner
)
public
public
virtual
virtual
onlyOwner
onlyOwner
...
...
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