Created
January 19, 2016 06:47
-
-
Save barkthins/e906b7f8357e395a97a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var solc = require('solc'); | |
var fs = require('fs'); | |
var source = fs.readFileSync("test/constructor.sol", 'utf8'); | |
console.log(solc.version()); | |
var output = solc.compile(source,1); | |
console.log(output); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment