kill-switch-mcp 1.2.12 → 1.2.13
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.
- package/dist/server.js +8 -2
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -3855,7 +3855,7 @@ import {
|
|
|
3855
3855
|
stringToHex,
|
|
3856
3856
|
pad
|
|
3857
3857
|
} from "viem";
|
|
3858
|
-
import { Account, withFeePayer } from "viem/tempo";
|
|
3858
|
+
import { Account, Transaction, withFeePayer } from "viem/tempo";
|
|
3859
3859
|
import { tempoModerato, tempo } from "viem/chains";
|
|
3860
3860
|
var TEMPO_BIN = join2(homedir2(), ".tempo", "bin", "tempo");
|
|
3861
3861
|
var TEMPO_CHAIN_ID = parseInt(process.env.TEMPO_CHAIN_ID || "4217");
|
|
@@ -3991,7 +3991,13 @@ function readKeyAuthorization() {
|
|
|
3991
3991
|
try {
|
|
3992
3992
|
const content = readFileSync(tomlPath, "utf-8");
|
|
3993
3993
|
const match = content.match(/key_authorization\s*=\s*"(0x[0-9a-fA-F]+)"/);
|
|
3994
|
-
|
|
3994
|
+
if (!match)
|
|
3995
|
+
return null;
|
|
3996
|
+
const KA = Transaction.z_KeyAuthorization;
|
|
3997
|
+
if (KA?.deserialize) {
|
|
3998
|
+
return KA.deserialize(match[1]);
|
|
3999
|
+
}
|
|
4000
|
+
return match[1];
|
|
3995
4001
|
} catch {
|
|
3996
4002
|
return null;
|
|
3997
4003
|
}
|