From c75c1a44f5bbf5779c5024124ee8f97936f7d380 Mon Sep 17 00:00:00 2001 From: smartcontracts Date: Wed, 12 May 2021 19:09:10 -0400 Subject: [PATCH] Update Lib_AddressManager.sol --- .../libraries/resolver/Lib_AddressManager.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/contracts/contracts/optimistic-ethereum/libraries/resolver/Lib_AddressManager.sol b/packages/contracts/contracts/optimistic-ethereum/libraries/resolver/Lib_AddressManager.sol index 0fc8282612a0..fabf6ecc533b 100644 --- a/packages/contracts/contracts/optimistic-ethereum/libraries/resolver/Lib_AddressManager.sol +++ b/packages/contracts/contracts/optimistic-ethereum/libraries/resolver/Lib_AddressManager.sol @@ -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,