Merge pull request #6375 from MetaMask/Version-6.3.1

Version 6.3.1
feature/default_network_editable
Thomas Huang 6 years ago committed by GitHub
commit 87f393eb31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      CHANGELOG.md
  2. 2
      app/manifest.json
  3. 4
      ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.component.js
  4. 6
      ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js

@ -2,6 +2,12 @@
## Current Develop Branch ## Current Develop Branch
## 6.3.1 Fri Mar 26 2019
- [#6353](https://github.com/MetaMask/metamask-extension/pull/6353): Open restore vault in full screen when clicked from popup
- [#6372](https://github.com/MetaMask/metamask-extension/pull/6372): Prevents duplicates of account addresses from showing in send screen "To" dropdown
- [#6374](https://github.com/MetaMask/metamask-extension/pull/6374): Ensures users are placed on correct confirm screens even when registry service fails
## 6.3.0 Mon Mar 25 2019 ## 6.3.0 Mon Mar 25 2019
- [#6300](https://github.com/MetaMask/metamask-extension/pull/6300): Gas chart hidden on custom networks - [#6300](https://github.com/MetaMask/metamask-extension/pull/6300): Gas chart hidden on custom networks

@ -1,7 +1,7 @@
{ {
"name": "__MSG_appName__", "name": "__MSG_appName__",
"short_name": "__MSG_appName__", "short_name": "__MSG_appName__",
"version": "6.3.0", "version": "6.3.1",
"manifest_version": 2, "manifest_version": 2,
"author": "https://metamask.io", "author": "https://metamask.io",
"description": "__MSG_appDescription__", "description": "__MSG_appDescription__",

@ -25,6 +25,7 @@ export default class ConfirmTransactionSwitch extends Component {
methodData: PropTypes.object, methodData: PropTypes.object,
fetchingData: PropTypes.bool, fetchingData: PropTypes.bool,
isEtherTransaction: PropTypes.bool, isEtherTransaction: PropTypes.bool,
isTokenMethod: PropTypes.bool,
} }
redirectToTransaction () { redirectToTransaction () {
@ -33,6 +34,7 @@ export default class ConfirmTransactionSwitch extends Component {
methodData: { name }, methodData: { name },
fetchingData, fetchingData,
isEtherTransaction, isEtherTransaction,
isTokenMethod,
} = this.props } = this.props
const { id, txParams: { data } = {} } = txData const { id, txParams: { data } = {} } = txData
@ -45,7 +47,7 @@ export default class ConfirmTransactionSwitch extends Component {
return <Redirect to={{ pathname }} /> return <Redirect to={{ pathname }} />
} }
if (isEtherTransaction) { if (isEtherTransaction && !isTokenMethod) {
const pathname = `${CONFIRM_TRANSACTION_ROUTE}/${id}${CONFIRM_SEND_ETHER_PATH}` const pathname = `${CONFIRM_TRANSACTION_ROUTE}/${id}${CONFIRM_SEND_ETHER_PATH}`
return <Redirect to={{ pathname }} /> return <Redirect to={{ pathname }} />
} }

@ -1,5 +1,10 @@
import { connect } from 'react-redux' import { connect } from 'react-redux'
import ConfirmTransactionSwitch from './confirm-transaction-switch.component' import ConfirmTransactionSwitch from './confirm-transaction-switch.component'
import {
TOKEN_METHOD_TRANSFER,
TOKEN_METHOD_APPROVE,
TOKEN_METHOD_TRANSFER_FROM,
} from '../../helpers/constants/transactions'
const mapStateToProps = state => { const mapStateToProps = state => {
const { const {
@ -16,6 +21,7 @@ const mapStateToProps = state => {
methodData, methodData,
fetchingData, fetchingData,
isEtherTransaction: !toSmartContract, isEtherTransaction: !toSmartContract,
isTokenMethod: [TOKEN_METHOD_APPROVE, TOKEN_METHOD_TRANSFER, TOKEN_METHOD_TRANSFER_FROM].includes(methodData.name && methodData.name.toLowerCase()),
} }
} }

Loading…
Cancel
Save