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
bc5c8e2c
Commit
bc5c8e2c
authored
Sep 14, 2021
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve wording of recommendation in Initializable
parent
7237b167
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Initializable.sol
contracts/proxy/utils/Initializable.sol
+3
-4
No files found.
contracts/proxy/utils/Initializable.sol
View file @
bc5c8e2c
...
@@ -18,10 +18,9 @@ pragma solidity ^0.8.0;
...
@@ -18,10 +18,9 @@ pragma solidity ^0.8.0;
* ====
* ====
* Avoid leaving a contract uninitialized.
* Avoid leaving a contract uninitialized.
*
*
* An uninitialized contract can be used in certain kinds of exploits since it may allow an attacker to take control of
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* the contract. This includes the implementation contract behind a proxy. You can either invoke the initializer
* contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
* manually, independently of initialization of the proxy, or you can include a constructor to automatically mark it as
* initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
* initialized when it is deployed:
*
*
* [.hljs-theme-light.nopadding]
* [.hljs-theme-light.nopadding]
* ```
* ```
...
...
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