added balance-of tokens

This commit is contained in:
Ricardo Guilherme Schmidt 2017-05-25 06:30:46 -03:00
parent bde4627b23
commit d488169597

View File

@ -0,0 +1,11 @@
(ns commiteth.eth.erc20
(:require [commiteth.eth.core :as eth]
[clojure.tools.logging :as log]))
(defn balance-of
[token of]
(log/debug "erc20.balance-of(token, of)" token of)
(eth/call token
"0x70a08231"
of))