Skip to content

Commit

Permalink
Merge pull request #11 from FreenameDomains/dev
Browse files Browse the repository at this point in the history
Fixed getTokenIdNetwork with multiple read contract connections
  • Loading branch information
alessandrovisentini authored Oct 27, 2022
2 parents f8d8d18 + 7bfdc39 commit de61074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolver-providers/providers/base-resolver-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export abstract class BaseResolverProvider implements IResolverProvider {

protected async getTokenIdNetwork(tokenId: string): Promise<NetworkName | string | undefined> {
for (const readContractConnection of this.readContractConnections) {
const exists = readContractConnection.contract.exists(tokenId);
const exists = await readContractConnection.contract.exists(tokenId);
if (exists) {
return readContractConnection.network;
}
Expand Down

0 comments on commit de61074

Please sign in to comment.