@@ -73,9 +73,6 @@ def common_rejected(firmware: Firmware,
73
73
with app_client .sign_eip7702_authorization (BIP32_PATH , delegate , nonce , chain_id ):
74
74
moves = []
75
75
if firmware .is_nano :
76
- if firmware == Firmware .NANOS :
77
- time .sleep (0.5 ) # seems to take some time
78
- moves += [NavInsID .RIGHT_CLICK ]
79
76
moves += [NavInsID .BOTH_CLICK ]
80
77
else :
81
78
moves += [NavInsID .USE_CASE_CHOICE_REJECT ]
@@ -92,6 +89,8 @@ def test_eip7702_in_whitelist(firmware: Firmware,
92
89
backend : BackendInterface ,
93
90
scenario_navigator : NavigateWithScenario ,
94
91
test_name : str ):
92
+ if firmware == Firmware .NANOS :
93
+ pytest .skip ("Not supported on LNS" )
95
94
settings_toggle (firmware , scenario_navigator .navigator , [SettingID .EIP7702 ])
96
95
common (firmware , backend , scenario_navigator , test_name , TEST_ADDRESS_1 , NONCE , CHAIN_ID_1 ,
97
96
bytes .fromhex ("00" ),
@@ -102,6 +101,8 @@ def test_eip7702_in_whitelist_all_chain_whitelisted(firmware: Firmware,
102
101
backend : BackendInterface ,
103
102
scenario_navigator : NavigateWithScenario ,
104
103
test_name : str ):
104
+ if firmware == Firmware .NANOS :
105
+ pytest .skip ("Not supported on LNS" )
105
106
settings_toggle (firmware , scenario_navigator .navigator , [SettingID .EIP7702 ])
106
107
common (firmware , backend , scenario_navigator , test_name , TEST_ADDRESS_0 , NONCE , CHAIN_ID_2 ,
107
108
bytes .fromhex ("00" ),
@@ -112,6 +113,8 @@ def test_eip7702_in_whitelist_all_chain_param(firmware: Firmware,
112
113
backend : BackendInterface ,
113
114
scenario_navigator : NavigateWithScenario ,
114
115
test_name : str ):
116
+ if firmware == Firmware .NANOS :
117
+ pytest .skip ("Not supported on LNS" )
115
118
settings_toggle (firmware , scenario_navigator .navigator , [SettingID .EIP7702 ])
116
119
common (firmware , backend , scenario_navigator , test_name , TEST_ADDRESS_2 , NONCE , CHAIN_ID_0 ,
117
120
bytes .fromhex ("01" ),
@@ -122,6 +125,8 @@ def test_eip7702_in_whitelist_max(firmware: Firmware,
122
125
backend : BackendInterface ,
123
126
scenario_navigator : NavigateWithScenario ,
124
127
test_name : str ):
128
+ if firmware == Firmware .NANOS :
129
+ pytest .skip ("Not supported on LNS" )
125
130
settings_toggle (firmware , scenario_navigator .navigator , [SettingID .EIP7702 ])
126
131
common (firmware , backend , scenario_navigator , test_name , TEST_ADDRESS_MAX , NONCE_MAX , CHAIN_ID_MAX ,
127
132
bytes .fromhex ("00" ),
@@ -133,18 +138,24 @@ def test_eip7702_in_whitelist_wrong_chain(firmware: Firmware,
133
138
backend : BackendInterface ,
134
139
scenario_navigator : NavigateWithScenario ,
135
140
test_name : str ):
141
+ if firmware == Firmware .NANOS :
142
+ pytest .skip ("Not supported on LNS" )
136
143
settings_toggle (firmware , scenario_navigator .navigator , [SettingID .EIP7702 ])
137
144
common_rejected (firmware , backend , scenario_navigator , test_name , TEST_ADDRESS_2 , NONCE , CHAIN_ID_1 )
138
145
139
146
def test_eip7702_not_in_whitelist (firmware : Firmware ,
140
147
backend : BackendInterface ,
141
148
scenario_navigator : NavigateWithScenario ,
142
149
test_name : str ):
150
+ if firmware == Firmware .NANOS :
151
+ pytest .skip ("Not supported on LNS" )
143
152
settings_toggle (firmware , scenario_navigator .navigator , [SettingID .EIP7702 ])
144
153
common_rejected (firmware , backend , scenario_navigator , test_name , TEST_ADDRESS_NO_WHITELIST , NONCE , CHAIN_ID_1 )
145
154
146
155
def test_eip7702_not_enabled (firmware : Firmware ,
147
156
backend : BackendInterface ,
148
157
scenario_navigator : NavigateWithScenario ,
149
158
test_name : str ):
159
+ if firmware == Firmware .NANOS :
160
+ pytest .skip ("Not supported on LNS" )
150
161
common_rejected (firmware , backend , scenario_navigator , test_name , TEST_ADDRESS_1 , NONCE , CHAIN_ID_1 )
0 commit comments