kill-switch-mcp 1.2.5 → 1.2.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.
Files changed (2) hide show
  1. package/dist/server.js +4 -3
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -3856,6 +3856,7 @@ import {
3856
3856
  pad
3857
3857
  } from "viem";
3858
3858
  import { privateKeyToAccount, generatePrivateKey } from "viem/accounts";
3859
+ import { Account } from "viem/tempo";
3859
3860
  var WALLET_DIR = join2(homedir2(), ".killswitch");
3860
3861
  var WALLET_FILE = join2(WALLET_DIR, "access-key.json");
3861
3862
  var TEMPO_RPC = process.env.TEMPO_RPC_URL || "https://rpc.moderato.tempo.xyz";
@@ -4003,8 +4004,8 @@ function getPublicClient() {
4003
4004
  transport: http()
4004
4005
  });
4005
4006
  }
4006
- function getWalletClient(privateKey) {
4007
- const account = privateKeyToAccount(privateKey);
4007
+ function getWalletClient(privateKey, parentAddress) {
4008
+ const account = Account.fromSecp256k1(privateKey, { access: parentAddress });
4008
4009
  return createWalletClient({
4009
4010
  account,
4010
4011
  chain: tempoChain,
@@ -4082,7 +4083,7 @@ async function joinTournament(tournamentAddress, username) {
4082
4083
  throw new Error("No game wallet found. Run setup_game_wallet first.");
4083
4084
  }
4084
4085
  const pub = getPublicClient();
4085
- const walletClient = getWalletClient(wallet.accessKeyPrivate);
4086
+ const walletClient = getWalletClient(wallet.accessKeyPrivate, wallet.accountAddress);
4086
4087
  const buyIn = await pub.readContract({
4087
4088
  address: tournamentAddress,
4088
4089
  abi: TOURNAMENT_ABI,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kill-switch-mcp",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Kill Switch MCP Server — AI battle royale powered by Claude Code",
5
5
  "type": "module",
6
6
  "bin": {