Skip to content

Commit

Permalink
set network id in ecosystem resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
maycon-mello committed Oct 28, 2024
1 parent f58c959 commit 38e0ed2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-native/lib/ecosystem-tools/ecosystemHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {getEcosystems} from '@docknetwork/wallet-sdk-core/src/ecosystem-tools';
import {hexToString} from '@polkadot/util';
import axios from 'axios';
import { captureException } from '@docknetwork/wallet-sdk-core/src/helpers';
import { getWallet } from '../wallet';

const getMetadata = async govFramework => {
const metadataURL = await hexToString(govFramework);
Expand Down Expand Up @@ -41,7 +42,7 @@ export function useEcosystems({issuer, verifier, schemaId}) {
if(isLoading) return;
setIsLoading(true);
setIsError(false);
getEcosystems({issuerDID: issuer, verifierDID: verifier, schemaId: schemaId})
getEcosystems({issuerDID: issuer, verifierDID: verifier, schemaId: schemaId, networkId: getWallet().getNetworkId()})
.then(async result => {
try {
const ecosystemData = await formatEcosystemData(result);
Expand Down

0 comments on commit 38e0ed2

Please sign in to comment.