Skip to content

Commit 3ab954a

Browse files
committed
fix: set _receiveIndexerStake _receiveDelegation visability private.
1 parent 1f3904e commit 3ab954a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/horizon/contracts/staking/HorizonStakingExtension.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ contract HorizonStakingExtension is HorizonStakingBase, IL2StakingBase, IHorizon
326326
function _receiveIndexerStake(
327327
uint256 _tokens,
328328
IL2StakingTypes.ReceiveIndexerStakeData memory _indexerData
329-
) internal {
329+
) private {
330330
address indexer = _indexerData.indexer;
331331
// Deposit tokens into the indexer stake
332332
_stake(indexer, _tokens);
@@ -345,7 +345,7 @@ contract HorizonStakingExtension is HorizonStakingBase, IL2StakingBase, IHorizon
345345
function _receiveDelegation(
346346
uint256 _tokens,
347347
IL2StakingTypes.ReceiveDelegationData memory _delegationData
348-
) internal {
348+
) private {
349349
require(_provisions[_delegationData.indexer][SUBGRAPH_DATA_SERVICE_ADDRESS].createdAt != 0, "!provision");
350350
// Get the delegation pool of the indexer
351351
DelegationPoolInternal storage pool = _legacyDelegationPools[_delegationData.indexer];

0 commit comments

Comments
 (0)