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

Feat/spend from #13

Closed
wants to merge 7 commits into from
Closed

Feat/spend from #13

wants to merge 7 commits into from

Conversation

neithanmo
Copy link
Collaborator

Add address filtering for renderization:

  • owned address are either printed using Main Account(if account is cero) or Sub-Account #accounte_number
  • if not owned, prints the shorter form of the address

@neithanmo neithanmo requested a review from abenso December 6, 2024 09:08
// Worse scenario where address is not controlled by the user
char addr_ui[ENCODED_ADDR_LEN] = {0};
uint8_t randomizer[ADDR_RANDOMIZER_LEN] = {0};
if (ctx->address_index.has_randomizer) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to move this logic to a helper, as we are going to use it in many places

@@ -27,6 +27,7 @@ const char *parser_getMsgPackTypeDescription(uint8_t type);

//// parses a tx buffer
parser_error_t parser_parse(parser_context_t *ctx, const uint8_t *data, size_t dataLen, parser_tx_t *tx_obj);
void parser_setAddressIndex(parser_context_t *ctx, address_index_t *addr_idx);
Copy link
Collaborator

Choose a reason for hiding this comment

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

parser_context_t *ctx is not defined in the implementation

@neithanmo neithanmo closed this Dec 9, 2024
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