Skip to content

Commit

Permalink
fix: remove redundant getter.
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBoi9001 committed Oct 1, 2024
1 parent 0dce797 commit c8f499e
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions packages/subgraph-service/contracts/DisputeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ contract DisputeManager is
/**
* @notice Initialize this contract.
* @param arbitrator Arbitrator role
* @param disputePeriod Dispute period in seconds
* @param _disputePeriod Dispute period in seconds
* @param disputeDeposit Deposit required to create a Dispute
* @param fishermanRewardCut_ Percent of slashed funds for fisherman (ppm)
* @param maxSlashingCut_ Maximum percentage of indexer stake that can be slashed (ppm)
*/
function initialize(
address arbitrator,
uint64 disputePeriod,
uint64 _disputePeriod,
uint256 disputeDeposit,
uint32 fishermanRewardCut_,
uint32 maxSlashingCut_
Expand All @@ -117,7 +117,7 @@ contract DisputeManager is
__AttestationManager_init();

_setArbitrator(arbitrator);
_setDisputePeriod(disputePeriod);
_setDisputePeriod(_disputePeriod);
_setDisputeDeposit(disputeDeposit);
_setFishermanRewardCut(fishermanRewardCut_);
_setMaxSlashingCut(maxSlashingCut_);
Expand Down Expand Up @@ -168,14 +168,6 @@ contract DisputeManager is
);
}

/**
* @notice Returns the current dispute period.
* @return The dispute period in seconds as a uint64.
*/
function disputePeriod() external view override returns (uint64) {
return disputePeriod;
}

/**
* @notice Create query disputes for two conflicting attestations.
* A conflicting attestation is a proof presented by two different indexers
Expand Down Expand Up @@ -319,8 +311,8 @@ contract DisputeManager is
* @dev Update the dispute period to `_disputePeriod` in seconds
* @param disputePeriod Dispute period in seconds
*/
function setDisputePeriod(uint64 disputePeriod) external override onlyOwner {
_setDisputePeriod(disputePeriod);
function setDisputePeriod(uint64 _disputePeriod) external override onlyOwner {
_setDisputePeriod(_disputePeriod);
}

/**
Expand Down

0 comments on commit c8f499e

Please sign in to comment.