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:
parent
66e0de73c5
commit
74c18ef0e8
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user