Removed blind signing setting
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
#define SETTING_CONTENTS_NB 1
|
||||
|
||||
enum {
|
||||
BLIND_SIGNING_TOKEN = FIRST_USER_TOKEN,
|
||||
DEBUG_TOKEN,
|
||||
DEBUG_TOKEN = FIRST_USER_TOKEN,
|
||||
NONCE_TOKEN,
|
||||
#ifdef HAVE_EIP712_FULL_SUPPORT
|
||||
EIP712_VERBOSE_TOKEN,
|
||||
@@ -21,8 +20,7 @@ enum {
|
||||
};
|
||||
|
||||
enum {
|
||||
BLIND_SIGNING_ID = 0,
|
||||
DEBUG_ID,
|
||||
DEBUG_ID = 0,
|
||||
NONCE_ID,
|
||||
#ifdef HAVE_EIP712_FULL_SUPPORT
|
||||
EIP712_VERBOSE_ID,
|
||||
@@ -51,11 +49,6 @@ static void controlsCallback(int token, uint8_t index, int page) {
|
||||
initSettingPage = page;
|
||||
|
||||
switch (token) {
|
||||
case BLIND_SIGNING_TOKEN:
|
||||
value = (N_storage.dataAllowed ? 0 : 1);
|
||||
switches[BLIND_SIGNING_ID].initState = (nbgl_state_t) value;
|
||||
nvm_write((void*) &N_storage.dataAllowed, (void*) &value, sizeof(uint8_t));
|
||||
break;
|
||||
case DEBUG_TOKEN:
|
||||
value = (N_storage.contractDetails ? 0 : 1);
|
||||
switches[DEBUG_ID].initState = (nbgl_state_t) value;
|
||||
@@ -84,12 +77,6 @@ static void controlsCallback(int token, uint8_t index, int page) {
|
||||
}
|
||||
|
||||
void ui_menu_settings(void) {
|
||||
switches[BLIND_SIGNING_ID].initState = N_storage.dataAllowed ? ON_STATE : OFF_STATE;
|
||||
switches[BLIND_SIGNING_ID].text = "Blind signing";
|
||||
switches[BLIND_SIGNING_ID].subText = "Enable transaction blind\nsigning";
|
||||
switches[BLIND_SIGNING_ID].token = BLIND_SIGNING_TOKEN;
|
||||
switches[BLIND_SIGNING_ID].tuneId = TUNE_TAP_CASUAL;
|
||||
|
||||
switches[DEBUG_ID].initState = N_storage.contractDetails ? ON_STATE : OFF_STATE;
|
||||
switches[DEBUG_ID].text = "Debug";
|
||||
switches[DEBUG_ID].subText = "Display contract data\ndetails";
|
||||
|
||||
Reference in New Issue
Block a user