truffle complie Error: The method eth_compileSolidity does not exist/is not available
•
区块链
> var testCompiled = web3.eth.compile.solidity(testSource); Error: The method eth_compileSolidity does not exist/is not available at web3.js:3104:20 at web3.js:6191:15 at web3.js:5004:36 at <anonymous>:1:20
1、Use Remix To Compile, Then Copy-Paste To Deploy
Use Remix from https://remix.ethereum.org
2、Copy the Web3 deployment instructions from the Remix page:
3、And paste it into the geth console with an unlocked account:
personal.unlockAccount(eth.accounts[0], "123456");