Merge pull request #53 from coopermaruyama/estimate-gas

feat(eth): Estimate gas instead of hard coding.
This commit is contained in:
Teemu Patja 2017-04-13 12:37:19 +03:00 committed by GitHub
commit 098893e0d9

View File

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