get_tx_info: fix types
This commit is contained in:
@@ -107,7 +107,8 @@ class TxDialog(Factory.Popup):
|
||||
|
||||
def update(self):
|
||||
format_amount = self.app.format_amount_and_units
|
||||
self.tx_hash, self.status_str, self.description, self.can_broadcast, self.can_rbf, amount, fee, height, conf, timestamp, exp_n = self.wallet.get_tx_info(self.tx)
|
||||
tx_hash, self.status_str, self.description, self.can_broadcast, self.can_rbf, amount, fee, height, conf, timestamp, exp_n = self.wallet.get_tx_info(self.tx)
|
||||
self.tx_hash = tx_hash or ''
|
||||
if timestamp:
|
||||
self.date_str = datetime.fromtimestamp(timestamp).isoformat(' ')[:-3]
|
||||
elif exp_n:
|
||||
|
||||
@@ -190,7 +190,7 @@ class TxDialog(QDialog, MessageBoxMixin):
|
||||
else:
|
||||
self.sign_button.hide()
|
||||
|
||||
self.tx_hash_e.setText(tx_hash)
|
||||
self.tx_hash_e.setText(tx_hash or _('Unknown'))
|
||||
if desc is None:
|
||||
self.tx_desc.hide()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user