1
0

qml: QEWallet.sign: prompt for confirmation even if no PIN is set

it would probably be better to also tell the user if the tx is going to be broadcast
This commit is contained in:
SomberNight
2024-10-22 17:10:15 +00:00
parent ca86c7eb44
commit c90c87afb9

View File

@@ -518,7 +518,7 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
self.isLightningChanged.emit()
self.dataChanged.emit()
@auth_protect()
@auth_protect(message=_('Sign on-chain transaction?')) # FIXME auth msg cannot be explicit due to "broadcast" param
def sign(self, tx, *, broadcast: bool = False, on_success: Callable[[Transaction], None] = None, on_failure: Callable[[], None] = None):
sign_hook = run_hook('tc_sign_wrapper', self.wallet, tx, partial(self.on_sign_complete, broadcast, on_success), partial(self.on_sign_failed, on_failure))
if sign_hook: