mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-11 10:06:20 +00:00
improve exception when contract cannot be loaded
This commit is contained in:
parent
d3afe111a2
commit
dd700ab3d3
@ -37,6 +37,7 @@
|
||||
([addr]
|
||||
(println "addr" addr)
|
||||
(let [contract (load-tokenreg-contract addr)]
|
||||
(assert contract (format "Could not load contract for addr %s" addr))
|
||||
;(assert (.isValid contract)) ;; web3j's isValid can't be trusted...
|
||||
(let [token-count (-> contract .tokenCount .get .getValue)]
|
||||
(log/debug "token-count" token-count)
|
||||
|
Loading…
x
Reference in New Issue
Block a user