Skip to content

Conversation

yhabib
Copy link
Contributor

@yhabib yhabib commented Oct 8, 2025

Motivation

Support the transaction memo for both ICP and ICRC1 addresses in ICP transaction flows. This PR implements the necessary changes in the transaction form components to include the memo field when activated by a prop.

Previous PR #7403

Changes

  • Added TransactionMemo to render the memo field.
  • Updated TransactionForm to support memo and validate it based on the destination address.
  • Updated TransactionReview to display the memo field in the summary.
  • Added utils to encode/decode.

Tests

  • Added unit tests for the utils.

Todos

  • Accessibility (a11y) – any impact?
  • Changelog – is it needed?

@yhabib yhabib changed the title transaction form feat(forms): add transaction memo field support Oct 8, 2025
@yhabib yhabib marked this pull request as ready for review October 8, 2025 15:40
@yhabib yhabib requested a review from a team as a code owner October 8, 2025 15:40
Copy link
Contributor

@mstrasinskis mstrasinskis left a comment

Choose a reason for hiding this comment

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

Thanks!

@yhabib yhabib enabled auto-merge October 9, 2025 08:00
@yhabib yhabib added this pull request to the merge queue Oct 9, 2025
Merged via the queue into main with commit 7b492d8 Oct 9, 2025
36 checks passed
@yhabib yhabib deleted the yhabib/transaction/form branch October 9, 2025 08:21
github-merge-queue bot pushed a commit that referenced this pull request Oct 9, 2025
# Motivation

Support the transaction memo for both ICP and ICRC1 addresses in ICP
transaction flows. This PR turns on the feature for ICP transaction
modal.

Previous PR #7405

Testable in
[devenv](https://qsgjb-riaaa-aaaaa-aaaga-cai.yhabib-ingress.devenv.dfinity.network/)

# Changes

- Added a memo to the `TransactionCard` based on the memo store.
- Turn on the `withMemo` option in the `IcpTransactionModal` for use by
all other child components.

# Tests

- Added a test for the `IcpTransactionModal` to check the conditionality
of the memo and to forward the value to the service layer.
- Added a test for the conditionality of the memo in the
`TransactionCard`.

# Todos

- [x] Accessibility (a11y) – any impact?
- [x] Changelog – is it needed?
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