We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99f215c commit 9e8004eCopy full SHA for 9e8004e
packages/subgraph-service/contracts/SubgraphService.sol
@@ -478,6 +478,7 @@ contract SubgraphService is
478
address indexer = _signedRav.rav.serviceProvider;
479
480
// Check that collectionId (256 bits) is a valid address (160 bits)
481
+ // collectionId is expected to be a zero padded address so it's safe to cast to uint160
482
require(
483
uint256(_signedRav.rav.collectionId) <= type(uint160).max,
484
SubgraphServiceInvalidCollectionId(_signedRav.rav.collectionId)
0 commit comments