Skip to content

Commit 42f721c

Browse files
committed
fix: updated the PoH interface to PoH v2
1 parent 578d4d5 commit 42f721c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

contracts/src/arbitration/dispute-kits/DisputeKitSybilResistant.sol

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ import {DisputeKitClassicBase} from "./DisputeKitClassicBase.sol";
66
import {KlerosCore} from "../KlerosCore.sol";
77

88
interface IProofOfHumanity {
9-
/// @notice Return true if the submission is registered and not expired.
10-
/// @param _submissionID The address of the submission.
11-
/// @return Whether the submission is registered or not.
12-
function isRegistered(address _submissionID) external view returns (bool);
9+
/// @notice Check whether the account corresponds to a claimed humanity.
10+
/// @dev From https://github.com/Proof-Of-Humanity/proof-of-humanity-v2-contracts/blob/a331e7b6bb0f7a7ad9a905d41032cecc52bf06a6/contracts/ProofOfHumanity.sol#L1495-L1502
11+
/// @param _account The account address.
12+
/// @return Whether the account has a valid humanity.
13+
function isHuman(address _account) external view returns (bool);
1314
}
1415

1516
/// @title DisputeKitSybilResistant
@@ -73,6 +74,6 @@ contract DisputeKitSybilResistant is DisputeKitClassicBase {
7374
address _juror,
7475
uint256 _roundNbVotes
7576
) internal view override returns (bool) {
76-
return super._postDrawCheck(_round, _coreDisputeID, _juror, _roundNbVotes) && poh.isRegistered(_juror);
77+
return super._postDrawCheck(_round, _coreDisputeID, _juror, _roundNbVotes) && poh.isHuman(_juror);
7778
}
7879
}

0 commit comments

Comments
 (0)