import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ethUtil from 'ethereumjs-util'; import ConfirmTransactionBase from '../confirm-transaction-base'; export default class ConfirmDeployContract extends Component { static contextTypes = { t: PropTypes.func, }; static propTypes = { txData: PropTypes.object, }; renderData() { const { t } = this.context; const { txData: { origin, txParams: { data } = {} } = {} } = this.props; return (
{`${t('origin')}:`}
{origin}
{`${t('bytes')}:`}
{ethUtil.toBuffer(data).length}
{`${t('hexData')}:`}
{data}
); } render() { return ( ); } }