diff --git a/src/graphql/helpers.ts b/src/graphql/helpers.ts index ecc12007..07c8f285 100644 --- a/src/graphql/helpers.ts +++ b/src/graphql/helpers.ts @@ -94,7 +94,9 @@ export function formatSpace({ space.voting.aliased = space.voting.aliased || false; space.voting.hideAbstain = space.voting.hideAbstain || false; space.voteValidation = space.voteValidation || { name: 'any', params: {} }; - space.delegationPortal = space.delegationPortal || null; + space.delegationPortal = space.delegationPortal + ? { delegationNetwork: '1', ...space.delegationPortal } + : null; space.boost = space.boost || { enabled: true, bribeEnabled: false }; space.strategies = space.strategies?.map(strategy => ({ ...strategy, diff --git a/src/graphql/schema.gql b/src/graphql/schema.gql index e7276f56..f55eeb56 100644 --- a/src/graphql/schema.gql +++ b/src/graphql/schema.gql @@ -505,6 +505,7 @@ type Validation { type DelegationPortal { delegationType: String! delegationContract: String! + delegationNetwork: String! delegationApi: String! }