mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 16:00:57 +00:00
legacy: remove hackish cast usage
This commit is contained in:
parent
bc0c10bf3e
commit
11d80f0f20
@ -10,7 +10,8 @@ const TokenType tokens[TOKENS_COUNT] = {
|
|||||||
% endfor
|
% 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)
|
const TokenType *tokenByChainAddress(uint32_t chain_id, const uint8_t *address)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user