Skip to content

IX-829: Normalize decimal response strings#26

Open
mnebliienko wants to merge 1 commit into
inflowpayai:mainfrom
mnebliienko:IX-829_decimal
Open

IX-829: Normalize decimal response strings#26
mnebliienko wants to merge 1 commit into
inflowpayai:mainfrom
mnebliienko:IX-829_decimal

Conversation

@mnebliienko

Copy link
Copy Markdown

Summary

  • add a shared x402 decimal response normalizer that strips trailing zeros without Number conversion or exponential notation
  • normalize buyer ledger balances before affordability checks
  • normalize facilitator settle response amounts at the SDK boundary

Moved from server PR #554 to the node layer.

Tests

  • pnpm --filter @inflowpayai/x402 test
  • pnpm --filter @inflowpayai/x402 build
  • pnpm --filter @inflowpayai/x402-buyer test
  • pnpm --filter @inflowpayai/x402-seller test
  • pnpm --filter @inflowpayai/x402 typecheck
  • pnpm --filter @inflowpayai/x402-buyer typecheck
  • pnpm --filter @inflowpayai/x402-seller typecheck
  • pnpm --filter @inflowpayai/x402 lint
  • pnpm --filter @inflowpayai/x402-buyer lint
  • pnpm --filter @inflowpayai/x402-seller lint
  • pnpm --filter @inflowpayai/x402-buyer build
  • pnpm --filter @inflowpayai/x402-seller build
  • pnpm format:check

@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant