@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 +2 -2
- package/esm/lib/constants.js +1 -1
- package/esm/solana/solana.js +1 -1
- package/package.json +1 -1
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.
|
|
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
|
}
|
package/esm/lib/constants.js
CHANGED
package/esm/solana/solana.js
CHANGED
|
@@ -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
|
}
|