Skip to content

Commit da99751

Browse files
Merge pull request #14 from LedgerHQ/feat/apa/improve_ram_usage_lns
Improve RAM usage for LNS
2 parents 2ced76b + 02269fd commit da99751

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/asset_info.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ typedef struct nftInfo_t {
3232
// TOKENS
3333

3434
#define MAX_TICKER_LEN 11 // 10 characters + '\0'
35-
#define MAX_ITEMS 2
3635

3736
typedef struct tokenDefinition_t {
3837
uint8_t address[ADDRESS_LENGTH]; // must be first item
@@ -47,5 +46,9 @@ typedef struct tokenDefinition_t {
4746

4847
typedef union extraInfo_t {
4948
tokenDefinition_t token;
49+
// Would have used HAVE_NFT_SUPPORT but it is only declared for the Ethereum app
50+
// and not plugins
51+
#ifndef TARGET_NANOS
5052
nftInfo_t nft;
53+
#endif
5154
} extraInfo_t;

0 commit comments

Comments
 (0)