Skip to content

Commit 8fdf968

Browse files
committed
staking: add isDelegator to the interface
1 parent 4052b9d commit 8fdf968

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

contracts/staking/IStaking.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,6 @@ interface IStaking {
194194
external
195195
view
196196
returns (Delegation memory);
197+
198+
function isDelegator(address _indexer, address _delegator) external view returns (bool);
197199
}

contracts/staking/Staking.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ contract Staking is StakingV1Storage, GraphUpgradeable, IStaking {
585585
* @param _delegator Address of the delegator
586586
* @return True if delegator of indexer
587587
*/
588-
function isDelegator(address _indexer, address _delegator) public view returns (bool) {
588+
function isDelegator(address _indexer, address _delegator) public override view returns (bool) {
589589
return delegationPools[_indexer].delegators[_delegator].shares > 0;
590590
}
591591

0 commit comments

Comments
 (0)