mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-13 11:06:18 +00:00
added balance-of tokens
This commit is contained in:
parent
bde4627b23
commit
d488169597
11
src/clj/commiteth/eth/erc20.clj
Normal file
11
src/clj/commiteth/eth/erc20.clj
Normal 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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user