From 34c3b6108b552580d67ed4454209d44a74d37b7a Mon Sep 17 00:00:00 2001 From: MoonBoi9001 Date: Tue, 1 Oct 2024 19:00:24 +0100 Subject: [PATCH] fix --- packages/subgraph-service/contracts/DisputeManager.sol | 10 +++++++++- .../contracts/DisputeManagerStorage.sol | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/subgraph-service/contracts/DisputeManager.sol b/packages/subgraph-service/contracts/DisputeManager.sol index b90a307b3..6a8bc8b77 100644 --- a/packages/subgraph-service/contracts/DisputeManager.sol +++ b/packages/subgraph-service/contracts/DisputeManager.sol @@ -168,6 +168,14 @@ 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 @@ -309,7 +317,7 @@ contract DisputeManager is /** * @notice Set the dispute period. * @dev Update the dispute period to `_disputePeriod` in seconds - * @param disputePeriod Dispute period in seconds + * @param _disputePeriod Dispute period in seconds */ function setDisputePeriod(uint64 _disputePeriod) external override onlyOwner { _setDisputePeriod(_disputePeriod); diff --git a/packages/subgraph-service/contracts/DisputeManagerStorage.sol b/packages/subgraph-service/contracts/DisputeManagerStorage.sol index a8790230d..ca1810f04 100644 --- a/packages/subgraph-service/contracts/DisputeManagerStorage.sol +++ b/packages/subgraph-service/contracts/DisputeManagerStorage.sol @@ -13,7 +13,7 @@ abstract contract DisputeManagerV1Storage { address public arbitrator; /// @notice dispute period in seconds - uint64 public disputePeriod; + uint64 internal disputePeriod; /// @notice Deposit required to create a Dispute uint256 public disputeDeposit;