Skip to content

fix: resolve issues #878, #880, #881, #882 - #985

Open
kurehkim334-lang wants to merge 1 commit into
WHEELBACK:mainfrom
kurehkim334-lang:fix-issues-878-880-881-882
Open

kurehkim334-lang wants to merge 1 commit into
WHEELBACK:mainfrom
kurehkim334-lang:fix-issues-878-880-881-882

Conversation

@kurehkim334-lang

Copy link
Copy Markdown

#878 — formatAmount: clamp minimumFractionDigits to fractionDigits not maximumFractionDigits, preventing spurious decimal zeros on 0-decimal tokens when maximumFractionDigits is explicitly set.

#880 — GET /invoices/:id and GET /invoices/:id/events: normalise the route parameter with String(BigInt(id)) to strip leading zeros so that '042' and '42' resolve to the same invoice document in MongoDB.

#881 — indexer recordTransition: move persistTransition() call to after the applied:true write so that any future side-effects (webhooks) only fire once the invoice status is durably stored. Previously a crash between the webhook dispatch and the DB mark would replay the webhook.

#882 — soroban.ts (frontend) buildAndSend: validate the signed transaction's network passphrase against VITE_NETWORK_PASSPHRASE before submitting; throws a clear 'Network mismatch' error when the wallet is on the wrong network. Backend createInvoice: reject an empty or missing networkPassphrase with a 503 to prevent network-agnostic transactions.

Tests added for all four fixes.

Pull Request

Summary

  • Describe the purpose of this PR in one or two sentences.

Checklist

  • PR description includes: Closes #[issue_id]
  • Tests added or updated
  • ABI snapshot updated if contract sources changed (abis/ and COMEBACKHERE-contracts/)
  • Screenshots attached if UI changed
  • Documentation updated if needed

Notes

  • For contract changes, verify ABI snapshot hygiene with make check-abi-snapshots.
  • For UI changes, include screenshots or screen recordings to help reviewers.

closes
closes #878
closes #880
closes #881
closes #882

…LBACK#882

WHEELBACK#878 — formatAmount: clamp minimumFractionDigits to fractionDigits not
maximumFractionDigits, preventing spurious decimal zeros on 0-decimal
tokens when maximumFractionDigits is explicitly set.

WHEELBACK#880 — GET /invoices/:id and GET /invoices/:id/events: normalise the
route parameter with String(BigInt(id)) to strip leading zeros so that
'042' and '42' resolve to the same invoice document in MongoDB.

WHEELBACK#881 — indexer recordTransition: move persistTransition() call to after
the applied:true write so that any future side-effects (webhooks) only
fire once the invoice status is durably stored. Previously a crash
between the webhook dispatch and the DB mark would replay the webhook.

WHEELBACK#882 — soroban.ts (frontend) buildAndSend: validate the signed
transaction's network passphrase against VITE_NETWORK_PASSPHRASE before
submitting; throws a clear 'Network mismatch' error when the wallet is
on the wrong network. Backend createInvoice: reject an empty or missing
networkPassphrase with a 503 to prevent network-agnostic transactions.

Tests added for all four fixes.
@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@kurehkim334-lang Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

1 participant