ENV: 测试-RPC 松露错误:方法eth_compileSolidity不支持
代码: 令源=“编译指示坚固^ 0.4.11;合同计算值{UINT计数;功能添加(UINT一个,UINT b)中返回(uint){count ++;返回a + b;}函数getCount()返回(uint){return count;}}“;
let calc = web3.eth.compile.solidity(source);
终端告诉我: 松露(开发)>错误:错误:不支持方法eth_compileSolidity。在GethApiDouble.handleRequest(/Users/user/.nvm/versions/node/v6.10.3/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:101870:16) ......
我不确定是否它的弃用..请检查下面的链接https://github.com/ethereum/EIPs/issues/209。如果你想获得合同的ABI /二进制文件,你可以使用混音。 – Rangesh