@clonegod/ttd-sui-common 1.0.41 → 1.0.42

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.
@@ -28,5 +28,5 @@ export declare abstract class AbstractSuiDexTradePlus extends AbastrcatTrade {
28
28
  outputToken: any;
29
29
  };
30
30
  abstract execute(context: TradeContext, retryCount?: number): Promise<string>;
31
- protected abstract initConfigs(): void;
31
+ protected abstract initConfigs(): Promise<void>;
32
32
  }
@@ -33,7 +33,7 @@ class AbstractSuiDexTradePlus extends dist_1.AbastrcatTrade {
33
33
  init() {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
35
  this.initSuiClient();
36
- this.initConfigs();
36
+ yield this.initConfigs();
37
37
  const walletGroupIds = process.env.SUI_WALLET_GROUP_IDS || '';
38
38
  this.walletMode = walletGroupIds && walletGroupIds.trim().split(',').length > 0 ? 'multi' : 'single';
39
39
  if (this.walletMode === 'multi') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sui-common",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "Sui common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",