0

Solidity 0.5.0 でこの方法で定数を宣言できないのはなぜですか? 最近のバージョンでは、すべてうまくいきました:

uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** uint256(decimals()));

/**
 * @return the number of decimals of the token.
 */
function decimals() public view returns (uint8) {
    return _decimals;
}
4

1 に答える 1