@quicknode/sdk 2.4.1 → 2.4.2

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.
package/cjs/index.js CHANGED
@@ -348,7 +348,7 @@ function setupGlobalFetch() {
348
348
  }
349
349
 
350
350
  // Ideally we read directly from package.json, but ran into some packaging issues with that
351
- const PACKAGE_VERSION = '2.4.1';
351
+ const PACKAGE_VERSION = '2.4.2';
352
352
 
353
353
  // Headers to use in RPC clients
354
354
  function getClientHeaders() {
@@ -481,7 +481,7 @@ class Solana {
481
481
  });
482
482
  if (simulation.value.err) {
483
483
  console.error('Simulation error:', simulation.value.err);
484
- throw new Error(`Failed to simulate transaction ${simulation.value.err}`);
484
+ throw new Error(`Failed to simulate transaction ${JSON.stringify(simulation.value.err)}`);
485
485
  }
486
486
  return simulation.value.unitsConsumed;
487
487
  }
@@ -1,4 +1,4 @@
1
1
  // Ideally we read directly from package.json, but ran into some packaging issues with that
2
- const PACKAGE_VERSION = '2.4.1';
2
+ const PACKAGE_VERSION = '2.4.2';
3
3
 
4
4
  export { PACKAGE_VERSION };
@@ -102,7 +102,7 @@ class Solana {
102
102
  });
103
103
  if (simulation.value.err) {
104
104
  console.error('Simulation error:', simulation.value.err);
105
- throw new Error(`Failed to simulate transaction ${simulation.value.err}`);
105
+ throw new Error(`Failed to simulate transaction ${JSON.stringify(simulation.value.err)}`);
106
106
  }
107
107
  return simulation.value.unitsConsumed;
108
108
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "directory": "packages/libs/sdk"
7
7
  },
8
8
  "license": "MIT",
9
- "version": "2.4.1",
9
+ "version": "2.4.2",
10
10
  "main": "./cjs/index.js",
11
11
  "module": "./esm/index.js",
12
12
  "types": "./index.d.ts",