@meshsdk/transaction 1.9.0-beta.28 → 1.9.0-beta.30

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/dist/index.cjs CHANGED
@@ -2140,10 +2140,27 @@ var MeshTxBuilder = class extends MeshTxBuilderCore {
2140
2140
  Object.values(this.meshTxBuilderBody.inputsForEvaluation),
2141
2141
  this.meshTxBuilderBody.chainedTxs
2142
2142
  ).catch((error) => {
2143
- throw new Error(
2144
- `Tx evaluation failed: ${error.message}
2143
+ if (error instanceof Error) {
2144
+ throw new Error(
2145
+ `Tx evaluation failed: ${error.message}
2145
2146
  For txHex: ${txHex}`
2146
- );
2147
+ );
2148
+ } else if (typeof error === "string") {
2149
+ throw new Error(
2150
+ `Tx evaluation failed: ${error}
2151
+ For txHex: ${txHex}`
2152
+ );
2153
+ } else if (typeof error === "object") {
2154
+ throw new Error(
2155
+ `Tx evaluation failed: ${JSON.stringify(error)}
2156
+ For txHex: ${txHex}`
2157
+ );
2158
+ } else {
2159
+ throw new Error(
2160
+ `Tx evaluation failed: ${String(error)}
2161
+ For txHex: ${txHex}`
2162
+ );
2163
+ }
2147
2164
  });
2148
2165
  this.updateRedeemer(this.meshTxBuilderBody, txEvaluation);
2149
2166
  txHex = this.serializer.serializeTxBody(
package/dist/index.js CHANGED
@@ -2105,10 +2105,27 @@ var MeshTxBuilder = class extends MeshTxBuilderCore {
2105
2105
  Object.values(this.meshTxBuilderBody.inputsForEvaluation),
2106
2106
  this.meshTxBuilderBody.chainedTxs
2107
2107
  ).catch((error) => {
2108
- throw new Error(
2109
- `Tx evaluation failed: ${error.message}
2108
+ if (error instanceof Error) {
2109
+ throw new Error(
2110
+ `Tx evaluation failed: ${error.message}
2110
2111
  For txHex: ${txHex}`
2111
- );
2112
+ );
2113
+ } else if (typeof error === "string") {
2114
+ throw new Error(
2115
+ `Tx evaluation failed: ${error}
2116
+ For txHex: ${txHex}`
2117
+ );
2118
+ } else if (typeof error === "object") {
2119
+ throw new Error(
2120
+ `Tx evaluation failed: ${JSON.stringify(error)}
2121
+ For txHex: ${txHex}`
2122
+ );
2123
+ } else {
2124
+ throw new Error(
2125
+ `Tx evaluation failed: ${String(error)}
2126
+ For txHex: ${txHex}`
2127
+ );
2128
+ }
2112
2129
  });
2113
2130
  this.updateRedeemer(this.meshTxBuilderBody, txEvaluation);
2114
2131
  txHex = this.serializer.serializeTxBody(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/transaction",
3
- "version": "1.9.0-beta.28",
3
+ "version": "1.9.0-beta.30",
4
4
  "description": "Transactions - https://meshjs.dev/apis/transaction",
5
5
  "main": "./dist/index.cjs",
6
6
  "browser": "./dist/index.js",
@@ -35,8 +35,8 @@
35
35
  "typescript": "^5.3.3"
36
36
  },
37
37
  "dependencies": {
38
- "@meshsdk/common": "1.9.0-beta.28",
39
- "@meshsdk/core-cst": "1.9.0-beta.28",
38
+ "@meshsdk/common": "1.9.0-beta.30",
39
+ "@meshsdk/core-cst": "1.9.0-beta.30",
40
40
  "json-bigint": "^1.0.0"
41
41
  },
42
42
  "prettier": "@meshsdk/configs/prettier",