• R/O
  • HTTP
  • SSH
  • HTTPS

Byone: Commit

Bytom Wallet for Chrome


Commit MetaInfo

Révisione10cf2ea9845916be5e329cca1f55c77717f2df4 (tree)
l'heure2019-10-28 11:24:56
AuteurZhiting Lin <zlin035@uott...>
CommiterZhiting Lin

Message de Log

shorten only address

Change Summary

Modification

--- a/src/views/assetList.vue
+++ b/src/views/assetList.vue
@@ -307,10 +307,12 @@ export default {
307307
308308 if (Number(balanceObject[0].amount) > 0) {
309309 transaction.direct = "+";
310- transaction.address = address.short(inputAddresses.pop());
310+ const resultAddr = inputAddresses.pop()
311+ transaction.address = resultAddr.includes(' ')?resultAddr:address.short(resultAddr);
311312 } else {
312313 transaction.direct = "-";
313- transaction.address = address.short(outputAddresses.pop());
314+ const resultAddr = outputAddresses.pop()
315+ transaction.address = resultAddr.includes(' ')?resultAddr:address.short(resultAddr);
314316 }
315317
316318 transaction.val = Num.formatNue(val, this.currentAsset.decimals) ;
Afficher sur ancien navigateur de dépôt.