@alephium/web3 0.11.4 → 0.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -418,7 +418,7 @@ class Project {
418
418
  }
419
419
  static async build(compilerOptionsPartial = {}, projectRootDir = '.', contractsRootDir = Project.DEFAULT_CONTRACTS_DIR, artifactsRootDir = Project.DEFAULT_ARTIFACTS_DIR, defaultFullNodeVersion = undefined) {
420
420
  const provider = (0, global_1.getCurrentNodeProvider)();
421
- const fullNodeVersion = defaultFullNodeVersion ?? (await provider.infos.getInfosNode()).buildInfo.releaseVersion;
421
+ const fullNodeVersion = defaultFullNodeVersion ?? (await provider.infos.getInfosVersion()).version;
422
422
  const sourceFiles = await Project.loadSourceFiles(projectRootDir, contractsRootDir);
423
423
  const { errorOnWarnings, ...nodeCompilerOptions } = { ...exports.DEFAULT_COMPILER_OPTIONS, ...compilerOptionsPartial };
424
424
  const projectArtifact = await ProjectArtifact.from(projectRootDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "0.11.4",
3
+ "version": "0.11.6",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -629,7 +629,7 @@ export class Project {
629
629
  defaultFullNodeVersion: string | undefined = undefined
630
630
  ): Promise<void> {
631
631
  const provider = getCurrentNodeProvider()
632
- const fullNodeVersion = defaultFullNodeVersion ?? (await provider.infos.getInfosNode()).buildInfo.releaseVersion
632
+ const fullNodeVersion = defaultFullNodeVersion ?? (await provider.infos.getInfosVersion()).version
633
633
  const sourceFiles = await Project.loadSourceFiles(projectRootDir, contractsRootDir)
634
634
  const { errorOnWarnings, ...nodeCompilerOptions } = { ...DEFAULT_COMPILER_OPTIONS, ...compilerOptionsPartial }
635
635
  const projectArtifact = await ProjectArtifact.from(projectRootDir)