diff --git a/CHANGELOG.md b/CHANGELOG.md index 289dade..1dd89ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.2] - 2020-09-30 +### Fixed +- Add Constructor on ClaimIssuer Contract + ## [1.1.1] - 2020-09-22 ### Fixed - Fix CI diff --git a/contracts/ClaimIssuer.sol b/contracts/ClaimIssuer.sol index 61a223b..18457b8 100644 --- a/contracts/ClaimIssuer.sol +++ b/contracts/ClaimIssuer.sol @@ -9,6 +9,10 @@ contract ClaimIssuer is IClaimIssuer, Identity { mapping (bytes => bool) public revokedClaims; mapping (bytes32 => address) public identityAddresses; + constructor(address _owner) public { + set(_owner); + } + function revokeClaim(bytes32 _claimId, address _identity) public override returns(bool) { uint256 foundClaimTopic; uint256 scheme; diff --git a/contracts/ERC734.sol b/contracts/ERC734.sol index 17b0929..2204878 100644 --- a/contracts/ERC734.sol +++ b/contracts/ERC734.sol @@ -28,7 +28,7 @@ contract ERC734 is IERC734 { event ExecutionFailed(uint256 indexed executionId, address indexed to, uint256 indexed value, bytes data); - function set(address _owner) external { + function set(address _owner) public { bytes32 _key = keccak256(abi.encode(_owner)); require(!identitySettled, "Key already exists"); identitySettled = true; diff --git a/contracts/IdentityFactory.sol b/contracts/IdentityFactory.sol index f801bf3..40307ff 100644 --- a/contracts/IdentityFactory.sol +++ b/contracts/IdentityFactory.sol @@ -16,10 +16,11 @@ contract IdentityFactory is CloneFactory { libraryAddress = _libraryAddress; } - function createIdentity(address _owner) public { + function createIdentity(address _owner) public returns(address) { address clone = createClone(libraryAddress); Identity(clone).set(_owner); IdentityCreated(clone); + return clone; } function isClonedIdentity(address _identity) public view returns (bool) { diff --git a/package-lock.json b/package-lock.json index aff56a1..323f208 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@onchain-id/solidity", - "version": "1.1.1", + "version": "1.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5169ba5..85804fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onchain-id/solidity", - "version": "1.1.1", + "version": "1.1.2", "description": "Ethereum solidity smart contracts for Blockchain OnchainID identities.", "files": [ "build",