diff --git a/assets/js/tx-sender.js b/assets/js/tx-sender.js index 7f181f5891..47005fbc0c 100644 --- a/assets/js/tx-sender.js +++ b/assets/js/tx-sender.js @@ -21,13 +21,17 @@ const set_up_tx_sender = async function() { } function logTx(txtype, hash, result) { - let li = "wtf" - // Future feature: link hash to a testnet txsplainer + let classes + let icon + const txlink = "https://testnet.xrpl.org/transactions/" + hash if (result === "tesSUCCESS") { - li = '
  • '+txtype+": "+hash+'
  • ' + classes = "text-muted" + icon = '' } else { - li = '
  • '+txtype+": "+hash+'
  • ' + classes = "list-group-item-danger" + icon = '' } + const li = `
  • ${icon} ${txtype}: ${hash}
  • ` $("#tx-sender-history ul").prepend(li) }