@agentcash/router 1.1.7 → 1.1.8

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/index.cjs CHANGED
@@ -2252,8 +2252,8 @@ function createRouter(config) {
2252
2252
  };
2253
2253
  let feePayerAccount;
2254
2254
  if (config.mpp.feePayerKey) {
2255
- const { privateKeyToAccount } = await import("viem/accounts");
2256
- feePayerAccount = privateKeyToAccount(config.mpp.feePayerKey);
2255
+ const { Account } = await import("viem/tempo");
2256
+ feePayerAccount = Account.fromSecp256k1(config.mpp.feePayerKey);
2257
2257
  }
2258
2258
  deps.mppx = Mppx.create({
2259
2259
  methods: [
package/dist/index.js CHANGED
@@ -2213,8 +2213,8 @@ function createRouter(config) {
2213
2213
  };
2214
2214
  let feePayerAccount;
2215
2215
  if (config.mpp.feePayerKey) {
2216
- const { privateKeyToAccount } = await import("viem/accounts");
2217
- feePayerAccount = privateKeyToAccount(config.mpp.feePayerKey);
2216
+ const { Account } = await import("viem/tempo");
2217
+ feePayerAccount = Account.fromSecp256k1(config.mpp.feePayerKey);
2218
2218
  }
2219
2219
  deps.mppx = Mppx.create({
2220
2220
  methods: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentcash/router",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Unified route builder for Next.js App Router APIs with x402, MPP, SIWX, and API key auth",
5
5
  "type": "module",
6
6
  "exports": {