Skip to content

Conversation

@AntonioVentilii
Copy link
Collaborator

Motivation

Since we can know the minting of an account, we can now check if the transaction will be a Burn transaction and inform the user accordingly.

Screenshot 2026-01-07 at 13 23 22 Screenshot 2026-01-07 at 13 23 27

Copilot AI review requested due to automatic review settings January 7, 2026 13:06
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner January 7, 2026 13:06
@AntonioVentilii AntonioVentilii marked this pull request as draft January 7, 2026 13:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for displaying different labels when a transaction is detected as a "Burn" operation - when tokens are being sent to the minting account. The implementation adds a new burning parameter that is derived based on the destination address matching the token's minting account, and updates wizard step titles to show "Burn" and "Burning..." instead of "Send" and "Sending..." when appropriate.

Key Changes:

  • Added burning parameter to send wizard configuration with priority order: minting > burning > converting
  • Added burn-specific i18n translations (burn, burning, burn_review_subtitle)
  • Implemented burning detection in SendModal by comparing destination with minting account

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 2 comments.

File Description
src/frontend/src/lib/config/send.config.ts Added burning parameter to wizard steps configuration with conditional title logic for burn operations
src/frontend/src/lib/i18n/en.json Added burn-specific translation keys for UI labels
src/frontend/src/lib/components/send/SendModal.svelte Implemented burning detection logic and passed it to wizard steps
src/frontend/src/tests/lib/config/send.config.spec.ts Added comprehensive test coverage for burning scenarios and priority handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AntonioVentilii AntonioVentilii marked this pull request as ready for review January 7, 2026 13:25
@AntonioVentilii AntonioVentilii added this pull request to the merge queue Jan 7, 2026
Merged via the queue into main with commit cb1d6d5 Jan 7, 2026
79 checks passed
@AntonioVentilii AntonioVentilii deleted the feat-frontend/Different-labels-for-Burn-transaction-in-Send-flow branch January 7, 2026 14:57
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.

2 participants