@meshsdk/transaction 1.9.0 → 1.9.1

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
@@ -4047,7 +4047,6 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
4047
4047
  ];
4048
4048
  if (this.fetcher) {
4049
4049
  try {
4050
- console.log("fetching cost models from fetcher...");
4051
4050
  const costModels = await this.fetcher.fetchCostModels();
4052
4051
  if (Array.isArray(costModels) && costModels.length > 0) {
4053
4052
  this.meshTxBuilderBody.network = costModels;
@@ -5400,6 +5399,12 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
5400
5399
  stepUnits += BigInt(vote.redeemer.exUnits.steps);
5401
5400
  }
5402
5401
  }
5402
+ for (let proposal of this.meshTxBuilderBody.proposals) {
5403
+ if (proposal.type === "ScriptProposal" && proposal.redeemer) {
5404
+ memUnits += BigInt(proposal.redeemer.exUnits.mem);
5405
+ stepUnits += BigInt(proposal.redeemer.exUnits.steps);
5406
+ }
5407
+ }
5403
5408
  memUnits = BigInt(
5404
5409
  new bignumber_default(memUnits).integerValue(bignumber_default.ROUND_CEIL).toString()
5405
5410
  );
package/dist/index.js CHANGED
@@ -4026,7 +4026,6 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
4026
4026
  ];
4027
4027
  if (this.fetcher) {
4028
4028
  try {
4029
- console.log("fetching cost models from fetcher...");
4030
4029
  const costModels = await this.fetcher.fetchCostModels();
4031
4030
  if (Array.isArray(costModels) && costModels.length > 0) {
4032
4031
  this.meshTxBuilderBody.network = costModels;
@@ -5379,6 +5378,12 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
5379
5378
  stepUnits += BigInt(vote.redeemer.exUnits.steps);
5380
5379
  }
5381
5380
  }
5381
+ for (let proposal of this.meshTxBuilderBody.proposals) {
5382
+ if (proposal.type === "ScriptProposal" && proposal.redeemer) {
5383
+ memUnits += BigInt(proposal.redeemer.exUnits.mem);
5384
+ stepUnits += BigInt(proposal.redeemer.exUnits.steps);
5385
+ }
5386
+ }
5382
5387
  memUnits = BigInt(
5383
5388
  new bignumber_default(memUnits).integerValue(bignumber_default.ROUND_CEIL).toString()
5384
5389
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/transaction",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
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",
39
- "@meshsdk/core-cst": "1.9.0",
38
+ "@meshsdk/common": "1.9.1",
39
+ "@meshsdk/core-cst": "1.9.1",
40
40
  "@cardano-sdk/core": "0.46.12",
41
41
  "@cardano-sdk/util": "0.17.1",
42
42
  "@cardano-sdk/input-selection": "0.14.28",