mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-02-05 19:13:39 +00:00
9a07b52319
- Managers can only execute actions on identity - Actors can execute actions outside identity - Validated minimum approvals to not exceed available keyTypes - Updated identity test unit to reflect changes
14 lines
390 B
Solidity
14 lines
390 B
Solidity
pragma solidity ^0.4.17;
|
|
|
|
import "../deploy/InstanceStorage.sol";
|
|
import "./Identity.sol";
|
|
|
|
contract IdentityKernel is InstanceStorage, Identity {
|
|
|
|
function initIdentity(address _caller) external {
|
|
require(minimumApprovalsByKeyPurpose[MANAGEMENT_KEY] == 0);
|
|
_addKey(bytes32(_caller), MANAGEMENT_KEY, 0);
|
|
minimumApprovalsByKeyPurpose[MANAGEMENT_KEY] = 1;
|
|
}
|
|
}
|