diff options
author | kumavis <aaron@kumavis.me> | 2016-11-11 13:19:34 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2016-11-11 13:19:34 +0800 |
commit | 536cab0687b6eb652401859cb41ae90dd7a62c1f (patch) | |
tree | e8021eadbff3d2c249deb453da8e21b2d729f0dd /ui/app/components | |
parent | 3775a4bf799efc99cfe3d46b35fc0b39a82c94c2 (diff) | |
download | tangerine-wallet-browser-536cab0687b6eb652401859cb41ae90dd7a62c1f.tar.gz tangerine-wallet-browser-536cab0687b6eb652401859cb41ae90dd7a62c1f.tar.zst tangerine-wallet-browser-536cab0687b6eb652401859cb41ae90dd7a62c1f.zip |
detect tx error - show warning and fix gasLimit
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/pending-tx.js | 9 |
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: { |