nexushub-commands 1.5.5 → 1.5.6

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.
@@ -215,6 +215,8 @@ tslib_1.__decorate([
215
215
  }
216
216
  else {
217
217
  const wallets = yield config.API.get(`/crypto/coins/${value}/wallets`).then((x) => x.data);
218
+ if (wallets.length === 1)
219
+ return wallets[0].id;
218
220
  context.sendFormatted({
219
221
  header: `<b>🪙 Выберите необходимую сеть для пополнения в ${value}</b>`,
220
222
  photo: config.images.depositCrypto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexushub-commands",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "main": "./lib/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -101,6 +101,8 @@ export class DepositCommand extends Command {
101
101
  );
102
102
  } else {
103
103
  const wallets = await config.API.get(`/crypto/coins/${value}/wallets`).then((x) => x.data);
104
+ if (wallets.length === 1) return wallets[0].id;
105
+
104
106
  context.sendFormatted(
105
107
  {
106
108
  header: `<b>🪙 Выберите необходимую сеть для пополнения в ${value}</b>`,