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

Remove Memo field from P-chain wallet #2732

Closed
wants to merge 2 commits into from
Closed

Conversation

dhrubabasu
Copy link
Contributor

@dhrubabasu dhrubabasu commented Feb 13, 2024

Why this should be merged

The Memo field must be empty post-Durango (#2607). This PR removes it from the P-chain wallet.

How this works

Don't populate the Memo field

How this was tested

CI

@dhrubabasu dhrubabasu added the cleanup Code quality improvement label Feb 13, 2024
@dhrubabasu dhrubabasu added this to the v1.11.0 milestone Feb 13, 2024
@dhrubabasu dhrubabasu self-assigned this Feb 13, 2024
@StephenButtolph StephenButtolph removed this from the v1.11.0 milestone Feb 15, 2024
Copy link
Contributor

@abi87 abi87 left a comment

Choose a reason for hiding this comment

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

I am favour of the cleanup, but I wonder if instead of "silentily" avoiding to include the memo field in any P-chain tx, we should explicitly err if ops.Memo() is non-empty.
It is probably not super relevant for the P-chain, but it may help wallet UX.
I wonder if we care about this in e2e test (cc @marun) or in cli (cc @felipemadero)

@StephenButtolph
Copy link
Contributor

I'm going to close this - I think there are still plans to re-introduce the memos into this code... and I think it's probably better to error if someone thinks they're providing memos rather than silently not including them.

@dhrubabasu dhrubabasu deleted the remove-p-wallet-memo branch February 19, 2024 18:27
mboben pushed a commit to mboben/avalanchego that referenced this pull request Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants