import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { toBuffer } 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')}:`}
{toBuffer(data).length}
{`${t('hexData')}:`}
{data}
); } render() { return ( ); } }