mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-02-18 17:06:37 +00:00
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;
|
uint8 approvalCount;
|
||||||
uint256 requiredKeyType;
|
uint256 requiredKeyType;
|
||||||
|
|
||||||
|
Approved(_id, _approve);
|
||||||
|
|
||||||
if (trx.to == address(this)) {
|
if (trx.to == address(this)) {
|
||||||
requiredKeyType = MANAGEMENT_KEY;
|
requiredKeyType = MANAGEMENT_KEY;
|
||||||
if (keys[managerKeyHash].purpose == MANAGEMENT_KEY) {
|
if (keys[managerKeyHash].purpose == MANAGEMENT_KEY) {
|
||||||
@ -130,7 +132,8 @@ contract Identity is ERC725, ERC735 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (approvalCount >= minimumApprovalsByKeyType[requiredKeyType]) {
|
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…
x
Reference in New Issue
Block a user