I am compiling a contract using the npm package
The package is at version 0.4.21 (
npm view solc).
However compilation fails because my pragma is set to ^0.4.21 while solcjs states
current compiler is 0.4.19.
Please do you have any idea why solcjs doesn't use the latest version of the compiler? Is solcjs the right tool to compile and deploy manually contracts using web3.js? Thanks!
Contracts are being compiled as follows:
var compiledContract = solc.compile(source,1); var abi = compiledContract.contracts[':Book'].interface; var abiArray = JSON.parse(abi); var bytecode = compiledContract.contracts[':Book'].bytecode;