mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-12 18:44:38 +00:00
Merge pull request #53 from coopermaruyama/estimate-gas
feat(eth): Estimate gas instead of hard coding.
This commit is contained in:
commit
098893e0d9
@ -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})]
|
||||
|
Loading…
x
Reference in New Issue
Block a user