Skip to content

Commit

Permalink
Update Lib_AddressManager.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcontracts authored May 12, 2021
1 parent f202873 commit c75c1a4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ contract Lib_AddressManager is Ownable {
public
onlyOwner
{
address oldAddress = addresses[_getNameHash(_name)];
addresses[_getNameHash(_name)] = _address;
bytes32 nameHash = _getNameHash(_name);
address oldAddress = addresses[nameHash];
addresses[nameHash] = _address;

emit AddressSet(
_name,
Expand Down

0 comments on commit c75c1a4

Please sign in to comment.