Skip to content

Commit

Permalink
fix(contracts): use sender address for ownable constructor args
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmad committed Feb 20, 2024
1 parent 39b9c09 commit 6492785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/contracts/TallyNonQv.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { CommonUtilities } from "./utilities/CommonUtilities.sol";
/// @title TallyNonQv
/// @notice The TallyNonQv contract is used during votes tallying
/// and by users to verify the tally results.
contract TallyNonQv is Ownable, SnarkCommon, CommonUtilities, Hasher {
contract TallyNonQv is Ownable(msg.sender), SnarkCommon, CommonUtilities, Hasher {
uint256 internal constant TREE_ARITY = 5;

/// @notice The commitment to the tally results. Its initial value is 0, but after
Expand Down
4 changes: 2 additions & 2 deletions contracts/contracts/gatekeepers/EASGatekeeper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { IEAS } from "../interfaces/IEAS.sol";
/// @title EASGatekeeper
/// @notice A gatekeeper contract which allows users to sign up to MACI
/// only if they've received an attestation of a specific schema from a trusted attester
contract EASGatekeeper is SignUpGatekeeper, Ownable {
contract EASGatekeeper is SignUpGatekeeper, Ownable(msg.sender) {
// the reference to the EAS contract
IEAS private immutable eas;

Expand Down Expand Up @@ -38,7 +38,7 @@ contract EASGatekeeper is SignUpGatekeeper, Ownable {
/// @param _eas The EAS contract
/// @param _attester The trusted attester
/// @param _schema The schema UID
constructor(address _eas, address _attester, bytes32 _schema) payable Ownable() {
constructor(address _eas, address _attester, bytes32 _schema) payable {
if (_eas == address(0) || _attester == address(0)) revert ZeroAddress();
eas = IEAS(_eas);
schema = _schema;
Expand Down

0 comments on commit 6492785

Please sign in to comment.