(updates: Partial<X402WalletConfig>)
| 104 | |
| 105 | /** Saves x402 wallet configuration */ |
| 106 | export function saveX402Config(updates: Partial<X402WalletConfig>): void { |
| 107 | const current = getX402Config() |
| 108 | const merged = { ...current, ...updates } |
| 109 | saveGlobalConfig((config) => ({ |
| 110 | ...config, |
| 111 | x402: merged, |
| 112 | })) |
| 113 | logForDebugging('[x402] Config updated') |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Saves a private key and derives + stores the wallet address. |
no test coverage detected