@gearbox-protocol/sdk 8.1.2 → 8.1.3

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.
@@ -100,7 +100,15 @@ class AccountOpener extends import_sdk.SDKConstruct {
100
100
  const result = await this.#openAccount(target, i + 1, targets.length);
101
101
  results.push(result);
102
102
  success += result.account ? 1 : 0;
103
+ if (result.error) {
104
+ this.#logger?.error(
105
+ `failed to open account #${i + 1}/${targets.length}: ${result.error}`
106
+ );
107
+ }
103
108
  } catch (e) {
109
+ this.#logger?.error(
110
+ `failed to open account #${i + 1}/${targets.length}: ${e}`
111
+ );
104
112
  results.push({
105
113
  input: target,
106
114
  error: e
@@ -85,7 +85,15 @@ class AccountOpener extends SDKConstruct {
85
85
  const result = await this.#openAccount(target, i + 1, targets.length);
86
86
  results.push(result);
87
87
  success += result.account ? 1 : 0;
88
+ if (result.error) {
89
+ this.#logger?.error(
90
+ `failed to open account #${i + 1}/${targets.length}: ${result.error}`
91
+ );
92
+ }
88
93
  } catch (e) {
94
+ this.#logger?.error(
95
+ `failed to open account #${i + 1}/${targets.length}: ${e}`
96
+ );
89
97
  results.push({
90
98
  input: target,
91
99
  error: e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "8.1.2",
3
+ "version": "8.1.3",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",