Commit 01f416bd authored by ben-chain's avatar ben-chain Committed by GitHub

add `AddressSet` event (#184)

parent 07009b36
......@@ -10,6 +10,15 @@ import { Ownable } from "./Lib_Ownable.sol";
*/
contract Lib_AddressManager is Ownable {
/**********
* Events *
**********/
event AddressSet(
string _name,
address _newAddress
);
/*******************************************
* Contract Variables: Internal Accounting *
*******************************************/
......@@ -28,6 +37,7 @@ contract Lib_AddressManager is Ownable {
public
onlyOwner
{
emit AddressSet(_name, _address);
addresses[_getNameHash(_name)] = _address;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment