Skip to content

Commit b2897b5

Browse files
authored
chore(network-subgraphs): Sponsorship#minOperators is not nullable (#1004)
Annotated the field as non-nullable in the GraphQL schema. The argument type for the field is `uint` in the `SponsorshipFactory#deploySponsorship`, and therefore it can't hold `null` value: ```solidity function deploySponsorship( uint minOperatorCount, string calldata streamId, string calldata metadata, address[] calldata policies, uint[] calldata policyParams ) ```
1 parent b3d19ea commit b2897b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/network-subgraphs/schema.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ type Sponsorship @entity {
469469
maxOperators: Int
470470

471471
"how many stakers are required so that Sponsorship isRunning(), i.e. starts paying"
472-
minOperators: Int
472+
minOperators: Int!
473473

474474

475475
## Sponsorship state: live / updated after relevant transactions

0 commit comments

Comments
 (0)