Skip to content

Commit

Permalink
Change zeros for maya
Browse files Browse the repository at this point in the history
  • Loading branch information
BitolMaya committed Aug 21, 2023
1 parent 7229f9f commit 3f6ac8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ parser_error_t parser_getNumItems(const parser_context_t *ctx, uint8_t *num_item
}

// This should always query for the direct JSMN_STRING type
// and MAYAChain always sends in long format, eg "100000000" for "1.0 CACAO"
// and MAYAChain always sends in long format, eg "10000000000" for "1.0 CACAO"
__Z_INLINE bool_t parser_isAmount(char *key) {
if (strcmp(key, "msgs/value/coins") == 0) return bool_true;

Expand Down
2 changes: 1 addition & 1 deletion docs/TXSPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Transactions passed to the Ledger device will be in the following format. The Le
```

`msgs` is a list of messages, which are arbitrary JSON structures. Ledger app currently supports `MsgDeposit` & `MsgSend` (examples below).
**Note:** All amount & gas values must be in base integer unit 1e8. E.g. "1.0" CACAO is invalid. The amount must be "100000000".
**Note:** All amount & gas values must be in base integer unit 1e10. E.g. "1.0" CACAO is invalid. The amount must be "10000000000".

#### Examples

Expand Down

0 comments on commit 3f6ac8e

Please sign in to comment.