I have a question when I use solidity to compile a simple contract. It like that:
> web3.eth.getCompilers()
["Solidity"]
> source = "contract test { function multiply(uint a) returns(uint d) { return a * 7; } }"
"contract test { function multiply(uint a) returns(uint d) { return a * 7; } }"
> source
"contract test { function multiply(uint a) returns(uint d) { return a * 7; } }"
> clientContract = eth.compile.solidity(source).test
undefined
I don't know why the result is "undefined", what is wrong? I'm using it on the mac os and also have the same question in ubuntu.
clientContract = eth.compile.solidity("contract test { function multiply(uint a) returns(uint d) { return a * 7; } }").test
undefined
Do you mean that ?
– wait_lin Feb 10 '17 at 01:18