Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

Commit

Permalink
improve exception when contract cannot be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
martinklepsch authored and churik committed Mar 27, 2018
1 parent d3afe11 commit dd700ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/clj/commiteth/eth/token_registry.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dd700ab

Please sign in to comment.