@clonegod/ttd-bsc-send-tx 1.0.1 → 1.0.2

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.
@@ -65,7 +65,7 @@ class _48ClubTrade {
65
65
  return __awaiter(this, void 0, void 0, function* () {
66
66
  const privateKey = (0, member_1.get_48club_sp_private_key)();
67
67
  if (!privateKey)
68
- return '';
68
+ throw new Error('48club SP private key not found');
69
69
  return sp_signature_1.SoulPointSignature.generate48SPSignature(privateKey, txs);
70
70
  });
71
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-bsc-send-tx",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "BSC 交易发送模块(HTTP直发 + WS bundle 转发)",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
@@ -58,7 +58,7 @@ export class _48ClubTrade {
58
58
 
59
59
  async get48SPSignature(txs: string[]): Promise<string> {
60
60
  const privateKey = get_48club_sp_private_key();
61
- if (!privateKey) return '';
61
+ if (!privateKey) throw new Error('48club SP private key not found');
62
62
  return SoulPointSignature.generate48SPSignature(privateKey, txs);
63
63
  }
64
64
  }