fix eth-rpc call
This commit is contained in:
parent
0d7ac5637d
commit
510ac9a709
|
@ -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"
|
||||||
:to to
|
:params [(merge params {:from from
|
||||||
:value value})])
|
:to to
|
||||||
|
: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)
|
||||||
|
|
Loading…
Reference in New Issue