This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-24
Channels
- # babashka (19)
- # beginners (43)
- # calva (10)
- # clj-kondo (3)
- # cljsrn (8)
- # clojure (106)
- # clojure-europe (8)
- # clojure-hungary (5)
- # clojure-nl (1)
- # clojure-uk (1)
- # clojurescript (14)
- # core-typed (1)
- # graalvm (2)
- # graphql (1)
- # malli (2)
- # membrane (9)
- # observability (2)
- # off-topic (66)
- # polylith (3)
- # practicalli (3)
- # re-frame (17)
- # reagent (3)
- # remote-jobs (7)
- # rewrite-clj (17)
- # sci (29)
- # shadow-cljs (45)
- # sql (5)
- # tools-deps (15)
- # vim (8)
@dnolen This is the documentation for call: https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html#methods-mymethod-call
Also the solidity compiler automatically creates getters for public variables
I’m trying to write new web3.eth.Contract(foo,bar)
and I have this:
(.. web3 -eth (Contract.
(:contract-json db)
(-> db :creation :creation/contract-address)))
But this is giving me
ioc_helpers.cljs:50 Uncaught Error: Please use the "new" keyword to instantiate a web3.eth.Contract() object!
How do I fix this?btw, doing (prn web3.eth)
gives me undefined so (web3.eth.Contract.
didn’t work
Hey, what are the best resources out there to learn how to add a REPL functionality in a webpage? The goal is to have a editor+output+display panels as CodePen and similar. I checked https://github.com/swannodette/cljs-bootstrap but I didn't understood if is what I need and also seems a bit outdated - but I don't know -
Sounds exactly like what @U050G2TQJ is doing.
@U01UYD2CL10 you could also check out https://4clojure.oxal.org/ which is using SCI + nextjournal/clojure-mode
or just the nextjournal/clojure-mode page itself: https://nextjournal.github.io/clojure-mode/
I've also built this REPL-like thing: https://babashka.org/xterm-sci/
There is also this demo: https://adam-james-v.github.io/posts/radish-basic-example/index.html which is using scittle (which is a ready to go packaging of SCI for direct embedding into a web page, without any CLJS project setup)
Available interactively at http://app.klipse.tech/ :)