我是否可以使用自定义erc20令牌在forsage.io/doubleway.io之类的实体上创建智能合约?

问题描述

 `constructor(address ownerAddress) public {
        levelPrice[1] = 25 ether;
        for (uint8 i = 2; i <= LAST_LEVEL; i++) {   
            levelPrice[i] = levelPrice[i-1] * 2;
        }`

如果我放置一个价格值自定义令牌(不是“ ether”。Tether,USD Coin等),编译器会给出错误消息

ParserError: Expected ';' but got identifier levelPrice[1] = 25 USDT; ^----^"

帮助!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)