Skip to content

Commit

Permalink
Fix identity for live networks (#10869)
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul authored Aug 26, 2024
1 parent 6ebe8ef commit 75437b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/apps-config/src/endpoints/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ export const prodChains: Omit<EndpointOption, 'teleport'>[] = [
},
{
info: 'vara',
isPeopleForIdentity: false,
providers: {
Blast: 'wss://vara-mainnet.public.blastapi.io',
Gear: 'wss://rpc.vara.network',
Expand Down
2 changes: 1 addition & 1 deletion packages/react-api/src/Api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export function ApiCtxRoot ({ apiUrl, children, isElectron, store: keyringStore
() => makeCreateLink(apiUrl, isElectron),
[apiUrl, isElectron]
);
const enableIdentity = apiEndpoint?.isPeople || (isNumber(apiEndpoint?.paraId) && (apiEndpoint?.paraId >= 2000)) || apiEndpoint?.info?.toLowerCase() === 'paseo';
const enableIdentity = apiEndpoint?.isPeople || (isNumber(apiEndpoint?.paraId) && (apiEndpoint?.paraId >= 2000)) || (typeof apiEndpoint?.isPeopleForIdentity === 'boolean' && !apiEndpoint?.isPeopleForIdentity);
const value = useMemo<ApiProps>(
() => objectSpread({}, state, { api: statics.api, apiEndpoint, apiError, apiIdentity: ((apiEndpoint?.isPeopleForIdentity && apiSystemPeople) || statics.api), apiRelay, apiSystemPeople, apiUrl, createLink, enableIdentity, extensions, isApiConnected, isApiInitialized, isElectron, isLocalFork, isWaitingInjected: !extensions }),
[apiError, createLink, extensions, isApiConnected, isApiInitialized, isElectron, isLocalFork, state, apiEndpoint, apiRelay, apiUrl, apiSystemPeople, enableIdentity]
Expand Down

0 comments on commit 75437b5

Please sign in to comment.