I have the following code (source is the solidity contract to be compiled).
var compiled = web3.eth.compile.solidity(source);
var code = compiled.code;
var abi = compiled.info.abiDefinition;
However compiled.code and compiled.info.abiDefinition return undefined. What am I doing wrong?
undefinedgets printed to the console, but the code has still worked; have you checked typingabiinto the console afterwards to check? – Lee Feb 07 '17 at 18:32Uncaught TypeError: Cannot read property 'abiDefinition' of undefinedhowever if i print in the consoleconsole.log(JSON.stringify(compiled))it is not undefined – PetrosM Feb 07 '17 at 18:40compiled? – Lee Feb 07 '17 at 18:49