From 8fac13d0cb62137da648446cdd87503c8d7cdfbb Mon Sep 17 00:00:00 2001 From: Miguel de Elias Date: Fri, 30 Oct 2026 15:55:10 -0300 Subject: [PATCH] test(subgraph-service): exclude the service itself from fuzzed indexers --- .../test/unit/subgraphService/indexing-agreement/shared.t.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/subgraph-service/test/unit/subgraphService/indexing-agreement/shared.t.sol b/packages/subgraph-service/test/unit/subgraphService/indexing-agreement/shared.t.sol index c4d84d705..30eeecb64 100644 --- a/packages/subgraph-service/test/unit/subgraphService/indexing-agreement/shared.t.sol +++ b/packages/subgraph-service/test/unit/subgraphService/indexing-agreement/shared.t.sol @@ -133,6 +133,8 @@ contract SubgraphServiceIndexingAgreementSharedTest is SubgraphServiceTest, Boun // Exclude named test users: mint() uses deal() which SETS (not adds) token balances, // so a collision would overwrite the user's initial balance, then staking drains it to 0. vm.assume(!_isTestUser(_seed.addr)); + // The fuzzer can draw deployed addresses, and SubgraphService rejects itself as a payments destination. + vm.assume(_seed.addr != address(subgraphService)); (uint256 allocationKey, address allocationId) = boundKeyAndAddr(_seed.unboundedAllocationPrivateKey); vm.assume(_ctx.allocations[allocationId] == address(0));