1.安裝solc
npm install -g solc
用IDEA編譯sol時出現錯誤
solcjs.cmd --abi --bin CloudNoteService.sol -o C:\Users\Administrator\IdeaProjects\test
CloudNoteService.sol:1:1: ParserError: Source file requires different compiler version (current compiler is 0.5.10+commit.5a6ea5b1.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.22;
2.solcjs.cmd --version//查看solc版本
0.5.10+commit.5a6ea5b1.Emscripten.clang
3.npm uninstall solc//卸載
4.npm install -g solc@0.4.24//安裝solc0.4.24版本
5.C:\nodejs\node_modules\npm>solcjs.cmd --version//查看solc版本
0.4.24+commit.e67f0147.Emscripten.clang
6.solc跟web3一樣,有版本的區別。
https://solidity-cn.readthedocs.io/zh/develop/
https://www.cnblogs.com/wanghui-garcia/p/9580573.html
在
http://faucet.ropsten.be:3001/上申請,只需要輸入你在Ropsten網絡上的賬戶地址就行,轉幣操作非常迅速,目前一次可申請1ETH,24小時后可再次申請;
1.web3的1.0以下版本不支持web3.eth.abi
2.var ethabi = require('web3-eth-abi');這種引用也有問題。
3.升級web3到1.0以上版本后測試通過:
var Web3 = require('web3');
var web3 = new Web3();
console.log(web3.eth.abi.encodeFunctionSignature('myMethod(uint256,string)'))
方法: 在注冊表中刪除
運行regedit, 找到
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services 中想要刪除的服務。
重啟電腦可以看到你所選定的服務項在服務列表中不存在了
https://chaindesk.cn/witbook/1/12
https://ethereum.github.io/browser-solidity/
https://github.com/tooploox/ipfs-eth-database
https://www.jianshu.com/p/47174718960b