Skip to content

Commit

Permalink
add etherscan link for tx hash
Browse files Browse the repository at this point in the history
  • Loading branch information
olekon committed Jan 7, 2020
1 parent 0762af3 commit 1a9db83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/common/EventsGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ import PropTypes from 'prop-types'
import {Table, Radio, Icon} from 'antd';
import {shortenEvent} from '../../scripts/utils.js';
import FormattedValue from './FormattedValue.jsx';
import EtherescanLink from './EtherscanLink.jsx';
import {Map} from 'immutable';
import EtherscanLink from './EtherscanLink.jsx';


/**
* Grid to render event objects.
* Props:
* events - array of event objects as returned from getPastEvents
* event - entry of the ABI array
* networkId - network id (optional)
*/
class EventsGrid extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -74,7 +77,8 @@ class EventsGrid extends React.Component {
title: 'TxHash',
dataIndex: 'transactionHash',
key: 'transactionHash',
render: value => <FormattedValue type='' value={value} />
//render: value => <FormattedValue type='' value={value} />
render: value => <EtherscanLink networkId={this.props.networkId} type='' txHash={value} />
}];

return (
Expand Down

0 comments on commit 1a9db83

Please sign in to comment.