@meshsdk/contract 1.6.11 → 1.6.13

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
@@ -56,7 +56,7 @@ var MeshTxInitiator = class {
56
56
  mesh,
57
57
  fetcher,
58
58
  wallet,
59
- networkId,
59
+ networkId = 0,
60
60
  stakeCredential
61
61
  }) {
62
62
  this.mesh = mesh;
@@ -66,8 +66,11 @@ var MeshTxInitiator = class {
66
66
  if (wallet) {
67
67
  this.wallet = wallet;
68
68
  }
69
- if (networkId) {
70
- this.networkId = networkId;
69
+ this.networkId = networkId;
70
+ if (networkId === 1) {
71
+ this.mesh.setNetwork("mainnet");
72
+ } else {
73
+ this.mesh.setNetwork("preprod");
71
74
  }
72
75
  if (stakeCredential) {
73
76
  this.stakeCredential = this.stakeCredential;
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var MeshTxInitiator = class {
29
29
  mesh,
30
30
  fetcher,
31
31
  wallet,
32
- networkId,
32
+ networkId = 0,
33
33
  stakeCredential
34
34
  }) {
35
35
  this.mesh = mesh;
@@ -39,8 +39,11 @@ var MeshTxInitiator = class {
39
39
  if (wallet) {
40
40
  this.wallet = wallet;
41
41
  }
42
- if (networkId) {
43
- this.networkId = networkId;
42
+ this.networkId = networkId;
43
+ if (networkId === 1) {
44
+ this.mesh.setNetwork("mainnet");
45
+ } else {
46
+ this.mesh.setNetwork("preprod");
44
47
  }
45
48
  if (stakeCredential) {
46
49
  this.stakeCredential = this.stakeCredential;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/contract",
3
- "version": "1.6.11",
3
+ "version": "1.6.13",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",