构造函数初始值:
var name = "POINTS0222" ;
var symbol = "PTS" ;
var decimals = 1 ;
var totalSupply = 1000000000 ;
remix上部署测试过,是没问题的。
Geth的输出内容如下:
> null [object Object]
Contract mined! address: 0xa778f90dfd69d8e3995ddb086235a1f62e3d6d5d transactionHash: 0xc7347efbe4708403b9fdfea4f2631c4729893e0182850337c5426df8b874a9ce
>
> platformcontrol.address
"0xa778f90dfd69d8e3995ddb086235a1f62e3d6d5d"
> platformcontrol.totalSupply
function()
> platformcontrol.totalSupply()
0
> platformcontrol.decimals()
0
>