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
[from to value & [params]]
(let [
args (merge params
(let [args (merge params
{:from from
:value value}
(when-not (nil? (gas-price))
{:gasPrice (integer->hex gas-price)})
{:gasPrice (integer->hex (gas-price))})
(when-not (contains? params :gas)
{:gas
(estimate-gas from to value params)}))]