Removes useless space at the end of tickers

This commit is contained in:
Alexandre Paillier
2023-01-10 14:12:39 +01:00
parent 41c5d3e011
commit 74f880dce9
10 changed files with 68 additions and 73 deletions

View File

@@ -20,8 +20,7 @@ int handle_get_printable_amount(get_printable_amount_parameters_t* params, chain
if (params->is_fee) {
uint8_t ticker_len = strnlen(config->coinName, sizeof(config->coinName));
memcpy(ticker, config->coinName, ticker_len);
ticker[ticker_len] = ' ';
ticker[ticker_len + 1] = '\0';
ticker[ticker_len] = '\0';
decimals = WEI_TO_ETHER;
} else {
// If the amount is *not* a fee, decimals and ticker are built from the given config