@meshsdk/core-cst 1.9.0-beta.12 → 1.9.0-beta.14

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
@@ -6970,6 +6970,9 @@ var CardanoSDKSerializerCore = class {
6970
6970
  "Insufficient funds to create change output with tokens"
6971
6971
  );
6972
6972
  } else {
6973
+ if (remainingValue.coin() < fee) {
6974
+ throw new Error("Insufficient funds to pay fee");
6975
+ }
6973
6976
  fee = remainingValue.coin();
6974
6977
  currentOutputs.pop();
6975
6978
  }
package/dist/index.js CHANGED
@@ -6822,6 +6822,9 @@ var CardanoSDKSerializerCore = class {
6822
6822
  "Insufficient funds to create change output with tokens"
6823
6823
  );
6824
6824
  } else {
6825
+ if (remainingValue.coin() < fee) {
6826
+ throw new Error("Insufficient funds to pay fee");
6827
+ }
6825
6828
  fee = remainingValue.coin();
6826
6829
  currentOutputs.pop();
6827
6830
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/core-cst",
3
- "version": "1.9.0-beta.12",
3
+ "version": "1.9.0-beta.14",
4
4
  "description": "Types and utilities functions between Mesh and cardano-js-sdk",
5
5
  "main": "./dist/index.cjs",
6
6
  "browser": "./dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "@harmoniclabs/pair": "1.0.0",
46
46
  "@harmoniclabs/plutus-data": "1.2.4",
47
47
  "@harmoniclabs/uplc": "1.2.4",
48
- "@meshsdk/common": "1.9.0-beta.12",
48
+ "@meshsdk/common": "1.9.0-beta.14",
49
49
  "@types/base32-encoding": "^1.0.2",
50
50
  "base32-encoding": "^1.0.0",
51
51
  "bech32": "^2.0.0",