Skip to content

Commit

Permalink
Now parse the extra byte specifying the denomination of fees.
Browse files Browse the repository at this point in the history
  • Loading branch information
murisi committed Dec 7, 2023
1 parent 3e7c30b commit af5bc79
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3,530 deletions.
2 changes: 2 additions & 0 deletions app/src/parser_impl_txn.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,8 @@ parser_error_t readHeader(parser_context_t *ctx, parser_tx_t *v) {
CHECK_ERROR(checkTag(ctx, 0x01))
// Fee.amount
CHECK_ERROR(readUint256(ctx, &v->transaction.header.fees.amount))
// Fee.amount denomination
CHECK_ERROR(readByte(ctx, &v->transaction.header.fees.amount_denom))

// Fee.address
v->transaction.header.fees.address.len = ADDRESS_LEN_BYTES;
Expand Down
1 change: 1 addition & 0 deletions app/src/parser_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ typedef struct {
typedef struct {
bytes_t address;
uint256_t amount;
uint8_t amount_denom;
const char *symbol;
} fees_t;

Expand Down
2 changes: 1 addition & 1 deletion deps/nanos-secure-sdk
Submodule nanos-secure-sdk updated 199 files
Loading

0 comments on commit af5bc79

Please sign in to comment.