more comments

This commit is contained in:
Ricardo Guilherme Schmidt 2018-03-21 23:32:56 -03:00
parent 905aff6485
commit 7b179ec04c
1 changed files with 4 additions and 4 deletions

View File

@ -184,11 +184,11 @@ contract Identity is ERC725, ERC735 {
{
uint256 requiredKey = _to == address(this) ? MANAGEMENT_KEY : ACTION_KEY;
if (minimumApprovalsByKeyPurpose[requiredKey] == 1) {
executionId = nonce;
nonce++;
executionId = nonce; //(?) useless in this case
nonce++; //(?) should increment
require(isKeyPurpose(bytes32(msg.sender), requiredKey));
_to.call.value(_value)(_data);
emit Executed(executionId, _to, _value, _data);
_to.call.value(_value)(_data); //(?) success not used
emit Executed(executionId, _to, _value, _data); //no information on success
} else {
executionId = _execute(_to, _value, _data);
approve(executionId, true);