Fix bug in send-transaction

This commit is contained in:
Teemu Patja 2017-08-19 17:34:27 +03:00
parent 67ca49b816
commit 43ea9b91e0
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 2 additions and 3 deletions

View File

@ -75,12 +75,11 @@
(defn send-transaction (defn send-transaction
[from to value & [params]] [from to value & [params]]
(let [ (let [args (merge params
args (merge params
{:from from {:from from
:value value} :value value}
(when-not (nil? (gas-price)) (when-not (nil? (gas-price))
{:gasPrice (integer->hex gas-price)}) {:gasPrice (integer->hex (gas-price))})
(when-not (contains? params :gas) (when-not (contains? params :gas)
{:gas {:gas
(estimate-gas from to value params)}))] (estimate-gas from to value params)}))]