fix eth-rpc call

This commit is contained in:
Martin Klepsch 2018-04-17 22:12:06 +02:00
parent 0d7ac5637d
commit 510ac9a709
No known key found for this signature in database
GPG Key ID: 1A35E702AD48A9F6
1 changed files with 4 additions and 3 deletions

View File

@ -219,9 +219,10 @@
(defn estimate-gas (defn estimate-gas
[from to value & [params]] [from to value & [params]]
(let [geth-estimate (eth-rpc (let [geth-estimate (eth-rpc
"eth_estimateGas" [(merge params {:from from {:method "eth_estimateGas"
:params [(merge params {:from from
:to to :to to
:value value})]) :value value})]})
adjusted-gas (adjust-gas-estimate geth-estimate)] adjusted-gas (adjust-gas-estimate geth-estimate)]
(log/debug "estimated gas (geth):" geth-estimate) (log/debug "estimated gas (geth):" geth-estimate)