easyMINE / SmartContracts

Smart contracts for token, preICO, ICO and others
GNU General Public License v3.0
4 stars 1 forks source link

Warnings during compilation #1

Closed lukjel closed 7 years ago

lukjel commented 7 years ago

I've got messages like:

Compilation warnings encountered:

(...)/SmartContracts/Token/EasyMineToken.sol:16:7: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
      throw;
      ^---^
(...)/SmartContracts/contracts/ICO/EasyMineIco.sol:74:7: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
      throw;
      ^---^
... many more ...

Is it safe to use "throw"?

LukasGasior1 commented 7 years ago

It is safe. I'll change these to use the non-deprecated methods though

LukasGasior1 commented 7 years ago

Fixed