dappuniversity / token_sale

Code Your Own Cryptocurrency & ICO on Ethereum | Tutorial
406 stars 387 forks source link

problem with new syntax #15

Open startgeek opened 5 years ago

startgeek commented 5 years ago

there are couple of problems first: version of pragma should change to pragma solidity >=0.4.0 <0.6.0; second : using same name for constructor function as contract name is deprecated third : this keyword always raise a error in tokensale.sol I'm not sure why by the way thanks for great videos

mmcc1 commented 5 years ago

this should be address(this)

gabefighter99 commented 5 years ago

Also the tests that contain indexOf are failing. Is indexOf no longer a function? How to replace?