diff --git a/package.json b/package.json index df82899..6e5dda3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@itheum/sdk-mx-data-nft", - "version": "3.8.0-alpha.6", + "version": "3.8.0-alpha.7", "description": "SDK for Itheum's Data NFT Technology on MultiversX Blockchain", "main": "out/index.js", "types": "out/index.d.js", diff --git a/src/datanft.ts b/src/datanft.ts index ce15b9f..30ad1bd 100644 --- a/src/datanft.ts +++ b/src/datanft.ts @@ -107,14 +107,14 @@ export class DataNft implements DataNftType { ); } this.env = env; + this.networkConfiguration = networkConfiguration[env as EnvironmentsEnum]; + this.apiConfiguration = apiConfiguration[env as EnvironmentsEnum]; debugger; + if (useSpecificApiEndpoint && useSpecificApiEndpoint.trim() !== '') { this.apiConfiguration = useSpecificApiEndpoint.trim(); this.networkConfiguration.networkProvider = useSpecificApiEndpoint.trim(); - } else { - this.networkConfiguration = networkConfiguration[env as EnvironmentsEnum]; - this.apiConfiguration = apiConfiguration[env as EnvironmentsEnum]; } console.log(