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
b42fe20c
Commit
b42fe20c
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 address resolver (#371)
parent
c99e0214
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
Lib_AddressResolver.sol
...istic-ethereum/libraries/resolver/Lib_AddressResolver.sol
+10
-5
No files found.
packages/contracts/contracts/optimistic-ethereum/libraries/resolver/Lib_AddressResolver.sol
View file @
b42fe20c
...
...
@@ -9,9 +9,9 @@ import { Lib_AddressManager } from "./Lib_AddressManager.sol";
*/
abstract contract Lib_AddressResolver {
/*************
******************************
*
Contract Variables: Contract Referenc
es *
*************
******************************
/
/*************
*
Variabl
es *
*************/
Lib_AddressManager public libAddressManager;
...
...
@@ -25,7 +25,7 @@ abstract contract Lib_AddressResolver {
*/
constructor(
address _libAddressManager
)
{
) {
libAddressManager = Lib_AddressManager(_libAddressManager);
}
...
...
@@ -34,13 +34,18 @@ abstract contract Lib_AddressResolver {
* Public Functions *
********************/
/**
* Resolves the address associated with a given name.
* @param _name Name to resolve an address for.
* @return Address associated with the given name.
*/
function resolve(
string memory _name
)
public
view
returns (
address
_contract
address
)
{
return libAddressManager.getAddress(_name);
...
...
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