mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
Tx failed with Out of Gas error [#4855]
This commit is contained in:
parent
227014674c
commit
8307e80182
@ -267,7 +267,9 @@
|
|||||||
(handlers/register-handler-db
|
(handlers/register-handler-db
|
||||||
:wallet/update-estimated-gas-success
|
:wallet/update-estimated-gas-success
|
||||||
(fn [db [_ gas]]
|
(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
|
(handlers/register-handler-fx
|
||||||
:wallet/show-error
|
:wallet/show-error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user