Skip to content

Commit

Permalink
fix: subgraph-service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol committed Oct 3, 2024
1 parent a8d0247 commit 6b39d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,7 @@ contract HorizonStakingExtension is HorizonStakingBase, IL2StakingBase, IHorizon
* @param _tokens Amount of tokens that were transferred
* @param _delegationData struct containing the delegator's address and the indexer's address
*/
function _receiveDelegation(
uint256 _tokens,
IL2StakingTypes.ReceiveDelegationData memory _delegationData
) private {
function _receiveDelegation(uint256 _tokens, IL2StakingTypes.ReceiveDelegationData memory _delegationData) private {
require(_provisions[_delegationData.indexer][SUBGRAPH_DATA_SERVICE_ADDRESS].createdAt != 0, "!provision");
// Get the delegation pool of the indexer
DelegationPoolInternal storage pool = _legacyDelegationPools[_delegationData.indexer];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contract SubgraphServiceProvisionAcceptTest is SubgraphServiceTest {
tokens = bound(tokens, minimumProvisionTokens, MAX_TOKENS);
vm.assume(newVerifierCut >= fishermanRewardPercentage);
vm.assume(newVerifierCut <= MAX_PPM);
newDisputePeriod = uint64(bound(newDisputePeriod, disputePeriod, MAX_THAWING_PERIOD));
newDisputePeriod = uint64(bound(newDisputePeriod, disputePeriod, MAX_WAIT_PERIOD));

// Setup indexer
_createProvision(users.indexer, tokens, fishermanRewardPercentage, disputePeriod);
Expand Down

0 comments on commit 6b39d2c

Please sign in to comment.