1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 12:47:14 +01:00
metamask-extension/ui/app/components/pages/confirm-transaction-switch/confirm-transaction-switch.container.js

23 lines
455 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux'
import ConfirmTransactionSwitch from './confirm-transaction-switch.component'
const mapStateToProps = state => {
2018-07-06 20:58:41 +02:00
const {
confirmTransaction: {
txData,
methodData,
fetchingData,
toSmartContract,
2018-07-06 20:58:41 +02:00
},
} = state
return {
2018-07-06 20:58:41 +02:00
txData,
methodData,
fetchingData,
isEtherTransaction: !toSmartContract,
}
}
export default connect(mapStateToProps)(ConfirmTransactionSwitch)