File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/subgraph-service/test/subgraphService Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { IHorizonStakingTypes } from "@graphprotocol/horizon/contracts/interface
16
16
import { Allocation } from "../../contracts/libraries/Allocation.sol " ;
17
17
import { AllocationManager } from "../../contracts/utilities/AllocationManager.sol " ;
18
18
import { ISubgraphService } from "../../contracts/interfaces/ISubgraphService.sol " ;
19
+ import { LegacyAllocation } from "../../contracts/libraries/LegacyAllocation.sol " ;
19
20
import { SubgraphServiceSharedTest } from "../shared/SubgraphServiceShared.t.sol " ;
20
21
21
22
contract SubgraphServiceTest is SubgraphServiceSharedTest {
@@ -386,9 +387,9 @@ contract SubgraphServiceTest is SubgraphServiceSharedTest {
386
387
387
388
subgraphService.migrateLegacyAllocation (_indexer, _allocationId, _subgraphDeploymentID);
388
389
389
- ( address afterIndexer , bytes32 afterSubgraphDeploymentId ) = subgraphService.legacyAllocations (_allocationId);
390
- assertEq (afterIndexer , _indexer);
391
- assertEq (afterSubgraphDeploymentId , _subgraphDeploymentID);
390
+ LegacyAllocation.State memory afterLegacyAllocation = subgraphService.getLegacyAllocation (_allocationId);
391
+ assertEq (afterLegacyAllocation.indexer , _indexer);
392
+ assertEq (afterLegacyAllocation.subgraphDeploymentId , _subgraphDeploymentID);
392
393
}
393
394
394
395
/*
You can’t perform that action at this time.
0 commit comments