1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

legacy: remove hackish cast usage

This commit is contained in:
Pavol Rusnak 2020-01-04 16:02:48 +00:00
parent bc0c10bf3e
commit 11d80f0f20
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -10,7 +10,8 @@ const TokenType tokens[TOKENS_COUNT] = {
% endfor
};
const TokenType *UnknownToken = (const TokenType *)1;
static const TokenType _UnknownToken = { 0, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", " UNKN", 0 };
const TokenType *UnknownToken = &_UnknownToken;
const TokenType *tokenByChainAddress(uint32_t chain_id, const uint8_t *address)
{