diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-11-22 02:51:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-22 02:51:34 +0800 |
commit | 74c18ef0e81e73873f0b57f3f0cc1afb5a05d8cc (patch) | |
tree | c7b9191f8fefa4dd2bc2c37ffad0ed492bf85afe /ui/app/components | |
parent | 66e0de73c5511b49e24b93667d49d0b4accd89e3 (diff) | |
download | tangerine-wallet-browser-74c18ef0e81e73873f0b57f3f0cc1afb5a05d8cc.tar tangerine-wallet-browser-74c18ef0e81e73873f0b57f3f0cc1afb5a05d8cc.tar.gz tangerine-wallet-browser-74c18ef0e81e73873f0b57f3f0cc1afb5a05d8cc.tar.bz2 tangerine-wallet-browser-74c18ef0e81e73873f0b57f3f0cc1afb5a05d8cc.tar.lz tangerine-wallet-browser-74c18ef0e81e73873f0b57f3f0cc1afb5a05d8cc.tar.xz tangerine-wallet-browser-74c18ef0e81e73873f0b57f3f0cc1afb5a05d8cc.tar.zst tangerine-wallet-browser-74c18ef0e81e73873f0b57f3f0cc1afb5a05d8cc.zip |
Show byte count for hex data on confirm screen (#5798)
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js index 6d04e5fe6..0651c676b 100644 --- a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js +++ b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js @@ -1,3 +1,4 @@ +import ethUtil from 'ethereumjs-util' import React, { Component } from 'react' import PropTypes from 'prop-types' import ConfirmPageContainer, { ConfirmDetailRow } from '../../confirm-page-container' @@ -239,7 +240,7 @@ export default class ConfirmTransactionBase extends Component { ) } <div className="confirm-page-container-content__data-box-label"> - {`${t('hexData')}:`} + {`${t('hexData')}: ${ethUtil.toBuffer(data).length} bytes`} </div> <div className="confirm-page-container-content__data-box"> { data } |