From dcc8b227fe05f4e76224321b0ac3a71118fdc209 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Andres <11448715+al3mart@users.noreply.github.com> Date: Tue, 11 Jun 2024 01:46:29 +0200 Subject: [PATCH] fix(paseo): relay for identity (#10651) * fix(paseo): relay for identity * fix: check for paseo to enable identity * fix: lint --- packages/apps-config/src/endpoints/testingRelayPaseo.ts | 2 +- packages/react-api/src/Api.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/apps-config/src/endpoints/testingRelayPaseo.ts b/packages/apps-config/src/endpoints/testingRelayPaseo.ts index a5c10d3a6d..bf798c9e57 100644 --- a/packages/apps-config/src/endpoints/testingRelayPaseo.ts +++ b/packages/apps-config/src/endpoints/testingRelayPaseo.ts @@ -174,7 +174,7 @@ export const testRelayPaseo: EndpointOption = { dnslink: 'paseo', genesisHash: PASEO_GENESIS, info: 'paseo', - isPeopleForIdentity: true, + isPeopleForIdentity: false, isRelay: true, linked: [ ...testParasPaseoCommon, diff --git a/packages/react-api/src/Api.tsx b/packages/react-api/src/Api.tsx index 34cb3726f8..961323fee9 100644 --- a/packages/react-api/src/Api.tsx +++ b/packages/react-api/src/Api.tsx @@ -299,7 +299,7 @@ export function ApiCtxRoot ({ apiUrl, children, isElectron, store: keyringStore [apiUrl, isElectron] ); // TODO: Once the people migration is complete for polkadot, we can remove the polkadot check at the end. - const enableIdentity = apiEndpoint?.isPeople || (isNumber(apiEndpoint?.paraId) && (apiEndpoint?.paraId >= 2000)) || apiEndpoint?.info?.toLowerCase() === 'polkadot'; + const enableIdentity = apiEndpoint?.isPeople || (isNumber(apiEndpoint?.paraId) && (apiEndpoint?.paraId >= 2000)) || apiEndpoint?.info?.toLowerCase() === 'polkadot' || apiEndpoint?.info?.toLowerCase() === 'paseo'; // TODO remove `(apiEndpoint?.relayName === 'polkadot' && !apiEndpoint?.isRelay && apiRelay)` once polkadot is migrated over to the people chain for identities. const value = useMemo( () => objectSpread({}, state, { api: statics.api, apiEndpoint, apiError, apiIdentity: (apiEndpoint?.relayName === 'polkadot' && !apiEndpoint?.isRelay && apiRelay) || ((apiEndpoint?.isPeopleForIdentity && apiSystemPeople) || statics.api), apiRelay, apiSystemPeople, apiUrl, createLink, enableIdentity, extensions, isApiConnected, isApiInitialized, isElectron, isLocalFork, isWaitingInjected: !extensions }),