(amountUSD: number)
| 178 | |
| 179 | /** Updates max session spend limit */ |
| 180 | export function setX402MaxSessionSpend(amountUSD: number): void { |
| 181 | if (amountUSD <= 0) { |
| 182 | throw new Error('Max session spend must be a positive number') |
| 183 | } |
| 184 | saveX402Config({ maxSessionSpendUSD: amountUSD }) |
| 185 | } |
no test coverage detected