Added Approved and Executed events to Identity contract
This commit is contained in:
parent
e8cc00be53
commit
47a0434118
|
@ -117,6 +117,8 @@ contract Identity is ERC725, ERC735 {
|
|||
uint8 approvalCount;
|
||||
uint256 requiredKeyType;
|
||||
|
||||
Approved(_id, _approve);
|
||||
|
||||
if (trx.to == address(this)) {
|
||||
requiredKeyType = MANAGEMENT_KEY;
|
||||
if (keys[managerKeyHash].purpose == MANAGEMENT_KEY) {
|
||||
|
@ -130,7 +132,8 @@ contract Identity is ERC725, ERC735 {
|
|||
}
|
||||
|
||||
if (approvalCount >= minimumApprovalsByKeyType[requiredKeyType]) {
|
||||
success = trx.to.call.value(txx[_id].value)(txx[_id].data);
|
||||
Executed(_id, trx.to, trx.value, trx.data);
|
||||
success = trx.to.call.value(trx.value)(trx.data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue