Skip to content

Commit

Permalink
Merge pull request #4 from Hats-Protocol/chaining-compatibility
Browse files Browse the repository at this point in the history
v0.1.1
  • Loading branch information
spengrah authored Sep 14, 2024
2 parents c83e1e6 + 8c5a417 commit c0aca82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion script/DeployHatControlledModule.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { HatControlledModule } from "../src/HatControlledModule.sol";

contract Deploy is Script {
HatControlledModule public implementation;
bytes32 public constant SALT = bytes32(abi.encode(0x4a75)); // ~ H(4) A(a) T(7) S(5)
bytes32 public constant SALT = bytes32(abi.encode(0x4a76));

// default values
bool internal _verbose = true;
Expand Down
6 changes: 3 additions & 3 deletions src/HatControlledModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.19;

// import { console2 } from "forge-std/Test.sol"; // remove before deploy
import { HatsEligibilityModule, HatsModule } from "hats-module/HatsEligibilityModule.sol";
import { HatsToggleModule } from "hats-module/HatsToggleModule.sol";
import { IHatsToggle } from "hats-module/HatsToggleModule.sol";

/*//////////////////////////////////////////////////////////////
CUSTOM ERRORS
Expand All @@ -22,7 +22,7 @@ error NotAuthorized();
* HatsModuleFactory. For this contract to be used, it must be set as either the eligibility or toggle module for
* another hat.
*/
contract HatControlledModule is HatsEligibilityModule, HatsToggleModule {
contract HatControlledModule is HatsEligibilityModule, IHatsToggle {
/*//////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
Expand Down Expand Up @@ -152,7 +152,7 @@ contract HatControlledModule is HatsEligibilityModule, HatsToggleModule {
emit HatStatusSet(_hatId, _newStatus);
}

/// @inheritdoc HatsToggleModule
/// @inheritdoc IHatsToggle
function getHatStatus(uint256 _hatId) public view override returns (bool active) {
return !hatInactivity[_hatId];
}
Expand Down

0 comments on commit c0aca82

Please sign in to comment.