From 536cab0687b6eb652401859cb41ae90dd7a62c1f Mon Sep 17 00:00:00 2001 From: kumavis Date: Thu, 10 Nov 2016 21:19:34 -0800 Subject: detect tx error - show warning and fix gasLimit --- ui/app/components/pending-tx.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ui') 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: { -- cgit v1.2.3