I'd like to compile solidity in the browser. web3
has deprecated compile()
features so you can't call web3.eth.compile.solidity()
anymore.
I tried to browserify
require('solc') / require('solc/wrapper')
so that I could try to access compilation functions, but it seems to have issues.
I found one project that does this called browser-solc but it was last updated a year ago and I'm not sure I want to rely on it.
One option is just creating an endpoint to and executing it serverside, and returning the result to the user for use in smart contract deployment.
Any thoughts or solutions on the subject appreciated.