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
c99e0214
Commit
c99e0214
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 ResolvedDelegateProxy (#374)
parent
91a9a3dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Lib_ResolvedDelegateProxy.sol
...ethereum/libraries/resolver/Lib_ResolvedDelegateProxy.sol
+6
-4
No files found.
packages/contracts/contracts/optimistic-ethereum/libraries/resolver/Lib_ResolvedDelegateProxy.sol
View file @
c99e0214
...
...
@@ -13,7 +13,6 @@ contract Lib_ResolvedDelegateProxy {
* Variables *
*************/
// Using mappings to store fields to avoid overwriting storage slots in the
// implementation contract. For example, instead of storing these fields at
// storage slot `0` & `1`, they are stored at `keccak256(key + slot)`.
...
...
@@ -22,8 +21,8 @@ contract Lib_ResolvedDelegateProxy {
// There is a known flaw in this contract, and we will remove it from the repository
// in the near future. Due to the very limited way that we are using it, this flaw is
// not an issue in our system.
mapping
(address=>
string) private implementationName;
mapping
(address=>
Lib_AddressManager) private addressManager;
mapping
(address =>
string) private implementationName;
mapping
(address =>
Lib_AddressManager) private addressManager;
/***************
...
...
@@ -52,7 +51,10 @@ contract Lib_ResolvedDelegateProxy {
external
payable
{
address target = addressManager[address(this)].getAddress((implementationName[address(this)]));
address target = addressManager[address(this)].getAddress(
(implementationName[address(this)])
);
require(
target != address(0),
"Target address must be initialized."
...
...
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