Add safeTxHash in txs queue & history (#2145)

This commit is contained in:
nicolas 2021-04-13 13:01:14 -03:00 committed by GitHub
parent f65094f0f3
commit a995970d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ export const TxSummary = ({ txDetails }: { txDetails: ExpandedTxDetails }): Reac
const explorerUrl = txHash ? getExplorerInfo(txHash) : null
const nonce = isMultiSigExecutionDetails(detailedExecutionInfo) ? detailedExecutionInfo.nonce : undefined
const created = isMultiSigExecutionDetails(detailedExecutionInfo) ? detailedExecutionInfo.submittedAt : undefined
const safeTxHash = isMultiSigExecutionDetails(detailedExecutionInfo) ? detailedExecutionInfo.safeTxHash : undefined
return (
<>
@ -27,6 +28,14 @@ export const TxSummary = ({ txDetails }: { txDetails: ExpandedTxDetails }): Reac
</Text>
)}
</div>
{safeTxHash !== undefined && (
<div className="tx-hash">
<Text size="xl" strong as="span">
SafeTxHash:{' '}
</Text>
<InlineEthHashInfo textSize="xl" hash={safeTxHash} shortenHash={8} showCopyBtn />
</div>
)}
{nonce !== undefined && (
<div className="tx-nonce">
<Text size="xl" strong as="span">