From 3468be121056c97c48d02da26851dd5b265c196c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Carneiro?= Date: Thu, 20 Jun 2024 13:23:12 -0400 Subject: [PATCH] feat: show signer as short hash --- src/App.js | 2 +- src/components/tx/TxData.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 90568c33..464ff49a 100644 --- a/src/App.js +++ b/src/App.js @@ -95,7 +95,7 @@ class Root extends React.Component { <> - { this.props.apiLoadError ? + { this.props.apiLoadError ?

Error loading the explorer. Please reload the page to try again.

diff --git a/src/components/tx/TxData.js b/src/components/tx/TxData.js index 96222798..211a37d6 100644 --- a/src/components/tx/TxData.js +++ b/src/components/tx/TxData.js @@ -716,14 +716,14 @@ class TxData extends React.Component { {this.props.showConflicts ? renderConflicts() : ''}
{this.props.transaction.hash}
- {this.props.transaction.signer &&
{this.props.transaction.signer.toUpperCase()}
}
{hathorLib.transactionUtils.getTxType(this.props.transaction)} {isNFTCreation() && '(NFT)'}
{dateFormatter.parseTimestamp(this.props.transaction.timestamp)}
{this.props.transaction.nonce}
{helpers.roundFloat(this.props.transaction.weight)}
- {this.props.transaction.signer_id &&
0x{this.props.transaction.signer_id.toUpperCase()}
} + {this.props.transaction.signer_id &&
{this.props.transaction.signer_id.toLowerCase()}
} + {this.props.transaction.signer &&
{helpers.getShortHash(this.props.transaction.signer.toLowerCase())}
} {!hathorLib.transactionUtils.isBlock(this.props.transaction) && renderFirstBlockDiv()}