1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Show byte count for hex data on confirm screen (#5798)

This commit is contained in:
Whymarrh Whitby 2018-11-21 15:21:34 -03:30 committed by GitHub
parent 66e0de73c5
commit 74c18ef0e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }