|
|
|
@ -4,6 +4,7 @@ const ReactCSSTransitionGroup = require('react-addons-css-transition-group') |
|
|
|
|
const h = require('react-hyperscript') |
|
|
|
|
const connect = require('react-redux').connect |
|
|
|
|
const actions = require('./actions') |
|
|
|
|
const NetworkIndicator = require('./components/network') |
|
|
|
|
const txHelper = require('../lib/tx-helper') |
|
|
|
|
const isPopupOrNotification = require('../../app/scripts/lib/is-popup-or-notification') |
|
|
|
|
const ethUtil = require('ethereumjs-util') |
|
|
|
@ -24,6 +25,7 @@ function mapStateToProps (state) { |
|
|
|
|
index: state.appState.currentView.context, |
|
|
|
|
warning: state.appState.warning, |
|
|
|
|
network: state.metamask.network, |
|
|
|
|
provider: state.metamask.provider, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -36,6 +38,7 @@ ConfirmTxScreen.prototype.render = function () { |
|
|
|
|
var state = this.props |
|
|
|
|
|
|
|
|
|
var network = state.network |
|
|
|
|
var provider = state.provider |
|
|
|
|
var unconfTxs = state.unconfTxs |
|
|
|
|
var unconfMsgs = state.unconfMsgs |
|
|
|
|
var unconfTxList = txHelper(unconfTxs, unconfMsgs, network) |
|
|
|
@ -54,6 +57,10 @@ ConfirmTxScreen.prototype.render = function () { |
|
|
|
|
onClick: this.goHome.bind(this), |
|
|
|
|
}) : null, |
|
|
|
|
h('h2.page-subtitle', 'Confirm Transaction'), |
|
|
|
|
isNotification ? h(NetworkIndicator, { |
|
|
|
|
network: network, |
|
|
|
|
provider: provider, |
|
|
|
|
}) : null, |
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
h('h3', { |
|
|
|
|