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

Planner tests: memo #1846

Open
Tracked by #691
grod220 opened this issue Oct 4, 2024 · 0 comments
Open
Tracked by #691

Planner tests: memo #1846

grod220 opened this issue Oct 4, 2024 · 0 comments
Labels
testing Related to writing tests

Comments

@grod220
Copy link
Collaborator

grod220 commented Oct 4, 2024

Test various cases for memo handling:

// Add memo to the transaction plan.
let memo = if let Some(pb_memo_plaintext) = request.memo {
Some(MemoPlan::new(&mut OsRng, pb_memo_plaintext.try_into()?))
} else if actions_list.requires_memo() {
// If a memo was not provided, but is required (because we have outputs),
// auto-create one with the change address.
let plaintext = MemoPlaintext::new(change_address, String::new())?;
Some(MemoPlan::new(&mut OsRng, plaintext))
} else {
None
};

@grod220 grod220 added the testing Related to writing tests label Oct 4, 2024
@github-project-automation github-project-automation bot moved this to 🗄️ Backlog in Penumbra web Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Related to writing tests
Projects
Status: 🗄️ Backlog
Development

No branches or pull requests

1 participant