@miden-sdk/para 0.17.2 → 0.17.4

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.
@@ -122,10 +122,16 @@ async function createParaMidenClient(para, wallets, opts, showSigningModal = tru
122
122
  },
123
123
  autoSync: true
124
124
  });
125
- const accountId = await createAccount(
126
- client,
127
- publicKey,
128
- opts
129
- );
125
+ let accountId;
126
+ try {
127
+ accountId = await createAccount(
128
+ client,
129
+ publicKey,
130
+ opts
131
+ );
132
+ } catch (error) {
133
+ client.terminate();
134
+ throw error;
135
+ }
130
136
  return { client, accountId };
131
137
  }
@@ -95,11 +95,17 @@ async function createParaMidenClient(para, wallets, opts, showSigningModal = tru
95
95
  },
96
96
  autoSync: true
97
97
  });
98
- const accountId = await createAccount(
99
- client,
100
- publicKey,
101
- opts
102
- );
98
+ let accountId;
99
+ try {
100
+ accountId = await createAccount(
101
+ client,
102
+ publicKey,
103
+ opts
104
+ );
105
+ } catch (error) {
106
+ client.terminate();
107
+ throw error;
108
+ }
103
109
  return { client, accountId };
104
110
  }
105
111
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miden-sdk/para",
3
- "version": "0.17.2",
3
+ "version": "0.17.4",
4
4
  "type": "commonjs",
5
5
  "description": "Miden x Para Integration",
6
6
  "license": "MIT",
@@ -29,11 +29,11 @@
29
29
  "react": "^19.2.0",
30
30
  "react-test-renderer": "^19.2.0",
31
31
  "typescript": "^5.8.3",
32
- "@miden-sdk/miden-sdk": "0.17.2"
32
+ "@miden-sdk/miden-sdk": "0.17.4"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@getpara/web-sdk": "^3.18.0",
36
- "@miden-sdk/miden-sdk": "^0.17.2"
36
+ "@miden-sdk/miden-sdk": "^0.17.4"
37
37
  },
38
38
  "exports": {
39
39
  ".": {