Skip to content

Commit 1038cf4

Browse files
authored
fix: use min delegation for SubgraphService tests (#1080)
1 parent 468ed2c commit 1038cf4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: packages/subgraph-service/test/shared/SubgraphServiceShared.t.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract contract SubgraphServiceSharedTest is HorizonStakingSharedTest {
4141
}
4242

4343
modifier useDelegation(uint256 tokens) {
44-
vm.assume(tokens > 1);
44+
vm.assume(tokens > MIN_DELEGATION);
4545
vm.assume(tokens < 10_000_000_000 ether);
4646
(, address msgSender,) = vm.readCallers();
4747
resetPrank(users.delegator);

Diff for: packages/subgraph-service/test/utils/Constants.sol

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ abstract contract Constants {
2020
uint256 public constant curationCut = 10000;
2121
// Staking
2222
uint64 internal constant MAX_WAIT_PERIOD = 28 days;
23+
uint256 internal constant MIN_DELEGATION = 1 ether;
2324
// GraphEscrow parameters
2425
uint256 internal constant withdrawEscrowThawingPeriod = 60;
2526
// GraphPayments parameters

0 commit comments

Comments
 (0)