@trustwallet/cli 0.19.0 → 0.19.1

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -7546,7 +7546,8 @@ var init_dist3 = __esm({
7546
7546
  throw new Error(`Unsupported chain: ${chainKey}`);
7547
7547
  }
7548
7548
  const ct5 = requireCoinType(coinId);
7549
- return import_trust_sdk2.BlockchainService.signMessage(ct5, message, import_trust_sdk2.MessageType.Message, privateKey);
7549
+ const payload = getChainById(chainKey)?.isEVM ? `0x${Buffer.from(message, "utf8").toString("hex")}` : message;
7550
+ return import_trust_sdk2.BlockchainService.signMessage(ct5, payload, import_trust_sdk2.MessageType.Message, privateKey);
7550
7551
  }
7551
7552
  async signTypedData(params) {
7552
7553
  const coinId = chainKeyToCoinType(params.chainKey);
@@ -39443,12 +39444,13 @@ var WalletConnectProvider = class extends WalletProvider {
39443
39444
  const session = this.getActiveSession();
39444
39445
  if (!session) throw new WalletError("WC_NOT_CONNECTED", WC_NOT_CONNECTED_MSG);
39445
39446
  const client = await this.ensureClient();
39447
+ const hexMessage = `0x${Buffer.from(message, "utf8").toString("hex")}`;
39446
39448
  return client.request({
39447
39449
  topic: session.topic,
39448
39450
  chainId,
39449
39451
  request: {
39450
39452
  method: "personal_sign",
39451
- params: [message, this.resolveFromAddress(chainId)]
39453
+ params: [hexMessage, this.resolveFromAddress(chainId)]
39452
39454
  }
39453
39455
  });
39454
39456
  }
@@ -55251,7 +55253,7 @@ var crypto7 = __toESM(require("crypto"));
55251
55253
  // package.json
55252
55254
  var package_default = {
55253
55255
  name: "@trustwallet/cli",
55254
- version: "0.19.0",
55256
+ version: "0.19.1",
55255
55257
  description: "TWAK CLI \u2014 command-line interface for Trust Wallet Agent Kit",
55256
55258
  main: "dist/index.js",
55257
55259
  types: "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/cli",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "TWAK CLI — command-line interface for Trust Wallet Agent Kit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,18 +33,18 @@
33
33
  "tsup": "8.5.1",
34
34
  "typescript": "5.7.3",
35
35
  "vitest": "4.1.2",
36
- "@twak/actions": "0.19.0",
37
- "@twak/contracts": "0.19.0",
38
- "@twak/core": "0.19.0",
39
- "@twak/mcp": "0.19.0",
40
- "@twak/security": "0.19.0",
41
- "@twak/storage": "0.19.0",
42
- "@twak/swap": "0.19.0",
43
- "@twak/wallet": "0.19.0",
44
- "@twak/transactions": "0.19.0",
45
- "@twak/wallet-core": "0.19.0",
46
- "@twak/x402": "0.19.0",
47
- "@twak/walletconnect": "0.19.0"
36
+ "@twak/actions": "0.19.1",
37
+ "@twak/contracts": "0.19.1",
38
+ "@twak/core": "0.19.1",
39
+ "@twak/security": "0.19.1",
40
+ "@twak/storage": "0.19.1",
41
+ "@twak/swap": "0.19.1",
42
+ "@twak/transactions": "0.19.1",
43
+ "@twak/wallet": "0.19.1",
44
+ "@twak/mcp": "0.19.1",
45
+ "@twak/wallet-core": "0.19.1",
46
+ "@twak/walletconnect": "0.19.1",
47
+ "@twak/x402": "0.19.1"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"