is there any library or implementation of solc for react? im coding a dapp to deploy nft contracts and i need to compile the code to create the contract using ethers
Aug 1, 2022, 12:49 PM
Why not use the compiled artifact for deploying clones
Aug 1, 2022, 12:54 PM
didn't think about that because i was hardcoding the nft name and symbol in the contract but now after reading you i think i can just use two variables in the constructor and use the artifact
thanks a lot :D
im trying to replicate this
https://docs.openzeppelin.com/contracts/4.x/wizard
but including a button to deploy
im trying to replicate this
https://docs.openzeppelin.com/contracts/4.x/wizard
but including a button to deploy
Aug 1, 2022, 12:58 PM
Oh if you are going for code generator, then compile it on the go
Aug 1, 2022, 1:41 PM
i think i will make a little backend to compile the code and return the bytecode to the front, its the easiest way i think i can do it, i guess there's no problem on doing that as long as the source code is open and everyone can see that im not returning compromised bytecode
im doing it for fun for a hackathon so its not a big deal
Aug 1, 2022, 2:28 PM
the web browsers can do the same, sending source codes to the backend may raise privacy concerns
Aug 1, 2022, 2:29 PM
Can't you just use solc-js on the client?
Aug 1, 2022, 2:32 PM
Hint: Remix IDE
Aug 1, 2022, 2:33 PM
if it works on a browser most probably yes, i've been so much time using truffle, hardhat and remix that i forgot almost everything related to solc :D
Aug 1, 2022, 2:33 PM
https://github.com/ethereum/solc-js#browser-usage
I also never used solc-js but I know what it does ahahah
Aug 1, 2022, 2:34 PM
It does some miracles, that's all I know
Aug 1, 2022, 2:35 PM
i like it, hope i can make it work properly :D
Aug 1, 2022, 2:40 PM