Skip to content

Commit

Permalink
small argument fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chcmedeiros committed Nov 29, 2024
1 parent bbd67b2 commit dabbcf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/evm/tx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

static parser_context_t ctx_parsed_tx;

const char *tx_parse_eth() {
const char *tx_parse_eth(uint8_t *error_code) {
uint8_t err = parser_parse_eth(&ctx_parsed_tx, tx_get_buffer(), tx_get_buffer_length());

CHECK_APP_CANARY()
Expand All @@ -38,6 +38,7 @@ const char *tx_parse_eth() {
err = parser_validate_eth(&ctx_parsed_tx);
CHECK_APP_CANARY()

*error_code = err;
if (err != parser_ok) {
return parser_getErrorDescription(err);
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/evm/tx_eth.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/// Parse message stored in transaction buffer
/// This function should be called as soon as full buffer data is loaded.
/// \return It returns NULL if data is valid or error message otherwise.
const char *tx_parse_eth();
const char *tx_parse_eth(uint8_t *error_code);

/// Return the number of items in the transaction
zxerr_t tx_getNumItemsEth(uint8_t *num_items);
Expand Down

0 comments on commit dabbcf6

Please sign in to comment.