Fix bug in send-transaction
This commit is contained in:
parent
67ca49b816
commit
43ea9b91e0
|
@ -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)}))]
|
||||||
|
|
Loading…
Reference in New Issue