diff --git a/src/clj/commiteth/db/pull_requests.clj b/src/clj/commiteth/db/pull_requests.clj index 82cada4..14a31fa 100644 --- a/src/clj/commiteth/db/pull_requests.clj +++ b/src/clj/commiteth/db/pull_requests.clj @@ -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*] diff --git a/src/clj/commiteth/eth/core.clj b/src/clj/commiteth/eth/core.clj index c9b95b1..71e491e 100644 --- a/src/clj/commiteth/eth/core.clj +++ b/src/clj/commiteth/eth/core.clj @@ -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))]