From 74c18ef0e81e73873f0b57f3f0cc1afb5a05d8cc Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Wed, 21 Nov 2018 15:21:34 -0330 Subject: Show byte count for hex data on confirm screen (#5798) --- .../confirm-transaction-base/confirm-transaction-base.component.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { ) }
- {`${t('hexData')}:`} + {`${t('hexData')}: ${ethUtil.toBuffer(data).length} bytes`}
{ data } -- cgit v1.2.3