@@ -209,19 +209,18 @@ def run(self):
209
209
210
210
211
211
class SeedMnemonicEntryView (View ):
212
- def __init__ (self , cur_word_index : int = 0 , is_calc_final_word : bool = False , seed_type : str = Seed . TYPE__BIP39 ):
212
+ def __init__ (self , cur_word_index : int = 0 , is_calc_final_word : bool = False ):
213
213
super ().__init__ ()
214
214
self .cur_word_index = cur_word_index
215
215
self .cur_word = self .controller .storage .get_pending_mnemonic_word (cur_word_index )
216
216
self .is_calc_final_word = is_calc_final_word
217
- self .seed_type = seed_type
218
217
219
218
220
219
def run (self ):
221
220
is_final_word = (
222
221
self .cur_word_index == self .controller .storage .pending_mnemonic_length - 1 and
223
222
not self .is_calc_final_word and
224
- self .seed_type == Seed . TYPE__BIP39
223
+ not self .controller . storage . _pending_is_electrum
225
224
)
226
225
227
226
partial_mnemonic = None
@@ -265,8 +264,7 @@ def run(self):
265
264
SeedMnemonicEntryView ,
266
265
view_args = {
267
266
"cur_word_index" : self .cur_word_index + 1 ,
268
- "is_calc_final_word" : self .is_calc_final_word ,
269
- "seed_type" : self .seed_type
267
+ "is_calc_final_word" : self .is_calc_final_word
270
268
}
271
269
)
272
270
else :
@@ -301,8 +299,7 @@ def run(self):
301
299
)
302
300
303
301
if button_data [selected_menu_num ] == self .EDIT :
304
- seed_type = Seed .TYPE__ELECTRUM if self .controller .storage ._pending_is_electrum else Seed .TYPE__BIP39
305
- return Destination (SeedMnemonicEntryView , view_args = {"cur_word_index" : 0 , "seed_type" : seed_type })
302
+ return Destination (SeedMnemonicEntryView , view_args = {"cur_word_index" : 0 })
306
303
307
304
elif button_data [selected_menu_num ] == self .DISCARD :
308
305
self .controller .storage .discard_pending_mnemonic ()
@@ -529,7 +526,7 @@ def run(self):
529
526
530
527
self .controller .storage .init_pending_mnemonic (num_words = 12 , is_electrum = True )
531
528
532
- return Destination (SeedMnemonicEntryView , view_args = { "seed_type" : Seed . TYPE__ELECTRUM } )
529
+ return Destination (SeedMnemonicEntryView )
533
530
534
531
535
532
0 commit comments