From d4b98d1186ff50f7d8bfff7612d795285a365f6d Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 28 Feb 2018 11:47:59 -0400 Subject: [PATCH] - Added event to inform of an identity instance upgrade - Added test units for Identity factory and its kernel upgrading --- contracts/deploy/UpdatableInstance.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/deploy/UpdatableInstance.sol b/contracts/deploy/UpdatableInstance.sol index 550df8d..60f6d0a 100644 --- a/contracts/deploy/UpdatableInstance.sol +++ b/contracts/deploy/UpdatableInstance.sol @@ -10,6 +10,8 @@ import "./Instance.sol"; */ contract UpdatableInstance is Instance { + event InstanceUpdated(address oldKernel, address newKernel); + function UpdatableInstance(address _kernel) Instance(_kernel) public @@ -19,6 +21,7 @@ contract UpdatableInstance is Instance { function updateUpdatableInstance(address _kernel) external { require(msg.sender == address(this)); + InstanceUpdated(kernel, _kernel); kernel = _kernel; }