https://github.com/ethereum/mist/releases/tag/v0.11.1——下载mist和ethereum wallet
打开ethereum wallet.exe
创建DQCOIN账户,并从0x8E0D8466eF0cC4b0a1301Aa7dA1A030063eFa3e2转账100个DOCOIN到
0xBCDD89F710401eDA55848C5679b53e1C4CA0331C
转账5个ether过去才能部署合约
mist 与 ethereum 有什么区别呢?mist是一个Dapp浏览器,可以运行各种Dapp,ethereum wallet 可以看做是一个钱包Dapp,运行在mist浏览器上。
ethereum 死活连不上,转账进去的以太币也没有显示收到;换用mist上的ethereum wallet用。
下午不能连上现在晚上可以连上了,
为什么编译器一直在等待编译结果呢?
简化了合约代码,编译结果出来了,但是特么gas计算没有了
pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
// This generates a public event on the blockchain that will notify clients
event Transfer(address indexed from, address indexed to, uint256 value);
// This generates a public event on the blockchain that will notify