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

Empty memo issue #93

Merged
merged 7 commits into from
Dec 5, 2024
Merged

Empty memo issue #93

merged 7 commits into from
Dec 5, 2024

Conversation

chcmedeiros
Copy link
Collaborator

  • update zxlib and zemu
  • add condition to not print memo when it's empty
  • add testcase for this type of tx

@@ -38,6 +38,18 @@ parser_error_t _read(parser_context_t *ctx, parser_tx_t *v) {
return parser_ok;
}

bool hasMemoToPrint(const parser_context_t *ctx) {
// Check if memoSection exists and has a commitmentDiscriminant
if ((ctx->tx_obj->transaction.header.memoSection != NULL &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe no need for the if? and just return the (comparisons),however this way is a bit more explicit

@chcmedeiros chcmedeiros merged commit 5915b4a into dev Dec 5, 2024
28 checks passed
@chcmedeiros chcmedeiros deleted the empty-memo-issue branch December 5, 2024 08:30
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