File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
electrum/plugins/timelock_recovery Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -405,12 +405,8 @@ def _validate_input_values(
405
405
payto_e .setStyleSheet (ColorScheme .RED .as_stylesheet (True ))
406
406
payto_e .setToolTip ("Invalid address type - must be a Bitcoin address." )
407
407
return False
408
- scriptpubkey , is_address = pi .parse_output (pi .text .strip ())
409
- if not is_address :
410
- payto_e .setStyleSheet (ColorScheme .RED .as_stylesheet (True ))
411
- payto_e .setToolTip ("Must be a valid address, not a script." )
412
- return False
413
- context .outputs = [PartialTxOutput (scriptpubkey = scriptpubkey , value = '!' )]
408
+ assert pi .spk and pi .spk_is_address
409
+ context .outputs = [PartialTxOutput (scriptpubkey = pi .spk , value = '!' )]
414
410
return True
415
411
416
412
def start_plan (self , context : TimelockRecoveryContext ):
You can’t perform that action at this time.
0 commit comments