有sol合约函数mint():
function mint(address _holder, uint _value) external {
require(msg.sender == ico);
require(_value != 0);
require(totalSupply + _value <= TOKEN_LIMIT);
balances[_holder] += _value;
totalSupply += _value;
Transfer(0x0, _holder, _value); }
我成功地调用了这个函数来创建 10000 个令牌并将它们发送到 eth.accounts[0]:
个人.unlockAccount(eth.accounts[0])
真的
minedContract.mint.sendTransaction(eth.accounts[0], 10000, {from:eth.accounts[0]})
“0x6e4474072ebf2836fa6b737a6341504f79b53417e366c742c7ffefa0f3aff832”
但是 eth.accounts[0] 的余额仍然是 0。合约的总余额也是 0。我一直等到它被开采。为什么合同状态没有改变?