[fix] on-result event for in app transactions

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2019-05-28 18:20:08 +02:00
parent 8014f05837
commit 513ca85f27
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 2 additions and 2 deletions

View File

@ -553,7 +553,7 @@
(fx/defn eth-transaction-call
[{:keys [db] :as cofx}
{:keys [contract method params on-success on-error details] :as transaction}]
{:keys [contract method params on-result on-error details] :as transaction}]
(let [current-address (ethereum/current-address db)
transaction (merge {:to contract
:from current-address
@ -562,7 +562,7 @@
:symbol :ETH
:method "eth_sendTransaction"
:amount (money/bignumber 0)
:on-success on-success
:on-result on-result
:on-error on-error}
details)
go-to-view-id (if (get-in db [:account/account :wallet-set-up-passed?])