Skip to content

Commit

Permalink
chore: make txHash uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkelawala committed Jul 3, 2024
1 parent 77690ae commit 5fc8636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ main.card-container {
}

.ag-data-card {
width: 500px;
width: 520px;
max-height: 320px;
overflow: scroll;
display: flex;
Expand Down
4 changes: 3 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ function processData(data) {
function showTxInfo(txData) {
const { tx, txHash } = txData;
const prettifiedTx = jsonFormatter.format(tx, "\t");
const prettifiedTxHash = addHexPrefix(removeHexPrefix(txHash).toUpperCase());

const template = templates["airGappedData"];
const clone = document.importNode(template.content, true);

// Tx Hash
clone.querySelector("#tx-hash-content").textContent = txHash;
clone.querySelector("#tx-hash-content").textContent = prettifiedTxHash;

// Raw Data
const pre = document.createElement("pre");
Expand Down

0 comments on commit 5fc8636

Please sign in to comment.