Guest User

Untitled

a guest
Oct 22nd, 2017
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. command not found.
  2.  
  3. cd contracts
  4. npm install solc
  5. npm install ethereumjs-testrpc web3@0.20.1
  6.  
  7. node
  8.  
  9. Web3 = require('web3')
  10. web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
  11.  
  12. code = fs.readFileSync('MyContrat.sol').toString()
  13. solc = require('solc')
  14. compileCode = solc.compile(code)
Add Comment
Please, Sign In to add comment