import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ConfirmTransactionBase from '../confirm-transaction-base'; import { toBuffer } from '../../../shared/modules/buffer-utils'; 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 ( ); } }