Skip to content

Commit

Permalink
Merge pull request #29 from onchain-id/releases/1.1.2
Browse files Browse the repository at this point in the history
Releases/1.1.2
  • Loading branch information
Nakasar authored Sep 30, 2020
2 parents 515dcc0 + deb5e89 commit 34d12aa
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions contracts/ClaimIssuer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion contracts/ERC734.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion contracts/IdentityFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 34d12aa

Please sign in to comment.