Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add view struct for memos with AddressView for return address #3384

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

redshiftzero
Copy link
Member

@redshiftzero redshiftzero commented Nov 15, 2023

Closes #2780

This PR:

  • Modifies the MemoView to instead of having two variants, the MemoPlaintext and MemoCiphertext, to replace the MemoPlaintext with a MemoPlaintextView.
  • The MemoPlaintextView contains the string memo data along with an AddressView (instead of an Address).
  • When we construct TransactionPerspectives, we need to add the address view data for the memo return address.

In pcli view tx, we should show the full address if its opaque,
since we might want to send funds back to the sender, or, if we
can view, show which of our accounts the tx was sent from.
@redshiftzero redshiftzero changed the title wip: add view struct for memos with AddressView for sender add view struct for memos with AddressView for sender Nov 16, 2023
@redshiftzero redshiftzero changed the title add view struct for memos with AddressView for sender add view struct for memos with AddressView for return address Nov 16, 2023
@redshiftzero redshiftzero marked this pull request as ready for review November 16, 2023 18:20
@aubrika aubrika added P-next release _P-V1 Priority: slated for V1 release labels Nov 16, 2023
Copy link
Contributor

@aubrika aubrika left a comment

Choose a reason for hiding this comment

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

LGTM!

@aubrika aubrika merged commit 024db06 into main Nov 16, 2023
6 checks passed
@aubrika aubrika deleted the 2780-address-view branch November 16, 2023 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
_P-V1 Priority: slated for V1 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MemoView does not have an AddressView
2 participants