aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-11-11 13:37:09 +0800
committerGitHub <noreply@github.com>2016-11-11 13:37:09 +0800
commitf88079c6b9c0e7bf5d7765f8ea8471b64624d8d0 (patch)
treeed4164447d8a06ba9120d00ac2091eb66521bbda /ui/app/components
parent3775a4bf799efc99cfe3d46b35fc0b39a82c94c2 (diff)
parent1d0abc47711fd93f99289f9c59a58fb4fa2d1587 (diff)
downloadtangerine-wallet-browser-f88079c6b9c0e7bf5d7765f8ea8471b64624d8d0.tar.gz
tangerine-wallet-browser-f88079c6b9c0e7bf5d7765f8ea8471b64624d8d0.tar.zst
tangerine-wallet-browser-f88079c6b9c0e7bf5d7765f8ea8471b64624d8d0.zip
Merge pull request #805 from MetaMask/i804
detect tx error - show warning and fix gasLimit
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/pending-tx.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 4c27a8092..b619020d1 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -30,6 +30,15 @@ PendingTx.prototype.render = function () {
}
`),
+ txData.simulationFails ?
+ h('span.error', {
+ style: {
+ marginLeft: 50,
+ fontSize: '0.9em',
+ },
+ }, 'Transaction Error. Exception thrown in contract code.')
+ : null,
+
state.insufficientBalance ?
h('span.error', {
style: {