Tx failed with Out of Gas error [#4855]

This commit is contained in:
Andrey Shovkoplyas 2018-06-20 14:14:04 +03:00 committed by Roman Volosovskyi
parent 227014674c
commit 8307e80182
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE

View File

@ -267,7 +267,9 @@
(handlers/register-handler-db
:wallet/update-estimated-gas-success
(fn [db [_ gas]]
(assoc-in db [:wallet :send-transaction :gas] (money/bignumber gas))))
(if gas
(assoc-in db [:wallet :send-transaction :gas] (money/bignumber (int (* gas 1.2))))
db)))
(handlers/register-handler-fx
:wallet/show-error