Skip to content

Commit

Permalink
Merge pull request #3 from onchain-id/fix-claimIssuer
Browse files Browse the repository at this point in the history
Updated claim issuer contract
  • Loading branch information
Nakasar authored Jan 23, 2020
2 parents 2a074b5 + c2a4c7d commit 5db9041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions contracts/ClaimIssuer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ contract ClaimIssuer is IClaimIssuer, Identity {
address issuer;
bytes memory sig;
bytes memory data;

if (msg.sender != address(this)) {
require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 1), "Permissions: Sender does not have management key");
}

( foundClaimTopic, scheme, issuer, sig, data, ) = Identity(_identity).getClaim(_claimId);
// require(sig != 0, "Claim does not exist");

Expand Down
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": "0.3.1",
"version": "0.3.2",
"description": "Ethereum solidity smart contracts for Blockchain OnchainID identities.",
"files": [
"build",
Expand Down

0 comments on commit 5db9041

Please sign in to comment.