Simplified adding new clones

Removed dead code from the app (was safeguarded by #ifdefs of macros
that weren't defined)
This commit is contained in:
Alexandre Paillier
2023-09-12 15:07:07 +02:00
parent 14ba60c797
commit 015842d4e5
62 changed files with 119 additions and 704 deletions

View File

@@ -13,9 +13,7 @@ void handleGetAppConfiguration(uint8_t p1,
UNUSED(dataLength);
UNUSED(flags);
G_io_apdu_buffer[0] = (N_storage.dataAllowed ? APP_FLAG_DATA_ALLOWED : 0x00);
#ifndef HAVE_TOKENS_LIST
G_io_apdu_buffer[0] |= APP_FLAG_EXTERNAL_TOKEN_NEEDED;
#endif
#ifdef HAVE_STARKWARE
G_io_apdu_buffer[0] |= APP_FLAG_STARKWARE;
G_io_apdu_buffer[0] |= APP_FLAG_STARKWARE_V2;

View File

@@ -72,7 +72,7 @@ void handleSign(uint8_t p1,
txResult = processTx(&txContext,
workBuffer,
dataLength,
(chainConfig->kind == CHAIN_KIND_WANCHAIN ? TX_FLAG_TYPE : 0));
(chainConfig->chainId == 888 ? TX_FLAG_TYPE : 0)); // Wanchain exception
switch (txResult) {
case USTREAM_SUSPENDED:
break;