remove a couple eth-rpc methods that were used by the outdated logging, and no need to update pr save
This commit is contained in:
parent
1b4f0c7301
commit
66b70423d8
|
@ -10,9 +10,7 @@
|
|||
(let [state (case (:state pull-request)
|
||||
:opened 0
|
||||
:merged 1
|
||||
:closed 2
|
||||
;; allow for case of proper state already set
|
||||
(:state pull-request))]
|
||||
:closed 2)]
|
||||
|
||||
(log/debug "save pr" (assoc pull-request :state state))
|
||||
(jdbc/with-db-connection [con-db *db*]
|
||||
|
|
|
@ -184,20 +184,6 @@
|
|||
(eth-rpc {:method "eth_getTransactionReceipt"
|
||||
:params [hash]}))
|
||||
|
||||
(defn get-transaction-by-hash
|
||||
[hash]
|
||||
(eth-rpc {:method "eth_getTransactionByHash"
|
||||
:params [hash]}))
|
||||
|
||||
(defn get-logs
|
||||
[from-block address topics]
|
||||
(eth-rpc {:method "eth_getLogs"
|
||||
:params [{:address address
|
||||
:topics topics
|
||||
;; a nil fromBlock will default to the current block
|
||||
;; which is not useful for the current state of logging
|
||||
:fromBlock from-block}]}))
|
||||
|
||||
(defn format-call-params
|
||||
[method-id & params]
|
||||
(let [params (join (map format-param params))]
|
||||
|
|
Loading…
Reference in New Issue