ERC-20 tokens support for a simple set of tokens - display additional transaction details

This commit is contained in:
BTChip
2017-02-04 13:09:46 +01:00
parent b4ff4c4023
commit 0c094f4fe6
6 changed files with 421 additions and 28 deletions

View File

@@ -250,7 +250,9 @@ bool adjustDecimals(char *src, uint32_t srcLength, char *target,
while (offset < delta) {
target[offset++] = src[sourceOffset++];
}
target[offset++] = '.';
if (decimals != 0) {
target[offset++] = '.';
}
startOffset = offset;
while (sourceOffset < srcLength) {
target[offset++] = src[sourceOffset++];