Skip to content

Conversation

@SajeeTechi
Copy link
Contributor

@SajeeTechi SajeeTechi commented Jan 13, 2026

close #276
clip https://drive.google.com/file/d/1W_R-ttUU4LEzD2sCzOFGcM2EaSBB1HTT/view?usp=sharing
to do with community token decimal support.

- Added logic to parse encoded `amount` and `description` inside the `sendto` parameter.
- Added logic to parse encoded `tipAmount` and `tipDescription` inside the `tipTo` parameter.
- Ensures correct address and alias extraction when query strings are improperly encoded.
- Parse tipAmount and tipDescription from URI query parameters in Landing route
- Include tipAmount and tipDescription when constructing sendToParams
- Parse tipAmount and tipDescription in Wallet route for sendToURL construction
- Maintains consistency with existing parameter handling pattern
- Remove sendTransaction property from SendToScreen widget
- Remove unused SendTransaction import
- Remove sendTransaction from router instantiation
- Clean up commented-out dead code

The sendTransaction parameter was never used within the SendToScreen
widget and was never passed any value during navigation.
- to
- amount
- description
…d phase error

Wrap clearAmountController() and resetInputErrorState() in addPostFrameCallback
to avoid triggering rebuilds during navigation back to send_progress screen.
This fixes the "setState() called during build" error.
- Parse and format amounts according to community decimal support before
  setting in amount controller
- For communities without decimals (decimalDigits == 0): convert to integer
  format (e.g., "1.0" → "1")
- For communities with decimals: format with appropriate precision and
  remove trailing zeros
- Apply same formatting logic to tip amounts to ensure consistency
- Fixes issue where pre-filled amounts with decimals were uneditable in
  communities that don't support decimal values

The root cause was that input formatters (integerAmountFormatter vs
amountFormatter) expect amounts in specific formats. When pre-filled
amounts didn't match the expected format, the text field blocked all
editing attempts.
@SajeeTechi SajeeTechi requested a review from kevtechi January 13, 2026 05:51
@SajeeTechi SajeeTechi self-assigned this Jan 13, 2026
@SajeeTechi SajeeTechi merged commit 51794f7 into release/2.0.31 Jan 13, 2026
1 check passed
@SajeeTechi SajeeTechi deleted the 276-unable-to-change-amount-from-sendtourl-qr-format branch January 13, 2026 05: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.

1 participant