feat(eth): Esimtae gas instead of hard coding.

Closes #19.
This commit is contained in:
Cooper Maruyama 2017-04-10 23:15:05 -07:00
parent 034dacf29a
commit 8006646d6d
1 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,7 @@
(defn send-transaction (defn send-transaction
[from to value & [params]] [from to value & [params]]
;; todo: estimate gas instead of hardcoding (let [gas (estimate-gas from to value params)
(let [gas (format "0x%x" 2600000)
args (merge params {:from from args (merge params {:from from
:value value :value value
:gas gas})] :gas gas})]