Remixのbrowser Solidityでburn機能にonlyOwnerを関数に設定したのですが、使う場合にonlyOwnerが設定されているのですが、どのようにして使うのでしょうか・・。
これなのですが・・。Remixで作成したコントラクトアドレスを呼び出して、どの様に入力するのか試行錯誤をしております。
/** * @dev Burns a specific amount of tokens. * @param _from The address that will burn the tokens. * @param _unitAmount The amount of token to be burned. */ function burn(address _from, uint256 _unitAmount) onlyOwner public { require(_unitAmount > 0 && balanceOf[_from] >= _unitAmount); balanceOf[_from] = balanceOf[_from].sub(_unitAmount); totalSupply = totalSupply.sub(_unitAmount); Burn(_from, _unitAmount); } modifier canMint() { require(!mintingFinished); _; }
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。