import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ConfirmTransactionBase from '../confirm-transaction-base';
import { toBuffer } from '../../../shared/modules/buffer-utils';
import Box from '../../components/ui/box';
import { Text } from '../../components/component-library/text/deprecated';
import {
Color,
DISPLAY,
OVERFLOW_WRAP,
TextVariant,
TEXT_TRANSFORM,
} from '../../helpers/constants/design-system';
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 (
);
}
}