diff options
author | Thomas <thomas.b.huang@gmail.com> | 2019-06-26 03:42:35 +0800 |
---|---|---|
committer | Thomas <thomas.b.huang@gmail.com> | 2019-06-26 03:42:35 +0800 |
commit | a37a5acbe1d65571363c10017b24fe0b07ff0398 (patch) | |
tree | fd693ebc797fa03c307a913d8f10cc3d74388395 | |
parent | 748801f4179d353959f40049cf6ca27851eebd0e (diff) | |
download | tangerine-wallet-browser-a37a5acbe1d65571363c10017b24fe0b07ff0398.tar tangerine-wallet-browser-a37a5acbe1d65571363c10017b24fe0b07ff0398.tar.gz tangerine-wallet-browser-a37a5acbe1d65571363c10017b24fe0b07ff0398.tar.bz2 tangerine-wallet-browser-a37a5acbe1d65571363c10017b24fe0b07ff0398.tar.lz tangerine-wallet-browser-a37a5acbe1d65571363c10017b24fe0b07ff0398.tar.xz tangerine-wallet-browser-a37a5acbe1d65571363c10017b24fe0b07ff0398.tar.zst tangerine-wallet-browser-a37a5acbe1d65571363c10017b24fe0b07ff0398.zip |
Add simulation failure to tx confirmation when transaction simulationFails
-rw-r--r-- | ui/app/pages/confirm-transaction-base/confirm-transaction-base.container.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/app/pages/confirm-transaction-base/confirm-transaction-base.container.js b/ui/app/pages/confirm-transaction-base/confirm-transaction-base.container.js index 6b73b58f0..e769d8974 100644 --- a/ui/app/pages/confirm-transaction-base/confirm-transaction-base.container.js +++ b/ui/app/pages/confirm-transaction-base/confirm-transaction-base.container.js @@ -91,6 +91,10 @@ const mapStateToProps = (state, ownProps) => { const transaction = R.find(({ id }) => id === (transactionId || Number(paramsTransactionId)))(selectedAddressTxList) const transactionStatus = transaction ? transaction.status : '' + if (transaction && transaction.simulationFails) { + txData.simulationFails = transaction.simulationFails + } + const currentNetworkUnapprovedTxs = R.filter( ({ metamaskNetworkId }) => metamaskNetworkId === network, unapprovedTxs, |