I use metamask with chrome. In console browser when I run this code
var source = "" +
"contract test {\n" +
" function multiply(uint a) returns(uint d) {\n" +
" return a * 7;\n" +
" }\n" +
"}\n";
var compiled = web3.eth.compile.solidity(source, function(err,res){
console.log(err);
console.log(res);
})
I have this error :
Error: Error while compiling code.(…)
Is it a way to compile and deploy a smart contract directly in the the console browser ?