truffle-box / tutorialtoken-box

A box containing all you need to get started with our OpenZeppelin (TutorialToken) tutorial.
MIT License
56 stars 26 forks source link

Use constructor in Migrations.sol:11:3: #14

Closed ghost closed 6 years ago

ghost commented 6 years ago

This pull request solves issue https://github.com/truffle-box/tutorialtoken-box/issues/15 which is about compilation failure due to this deprecation warning:

Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Migrations() public {
  ^ (Relevant source part starts here and spans across multiple lines).

Solution

Fix Migrations.sol:11:3: from this

function Migrations() public {

to this

constructor() public {
bmmpxf commented 6 years ago

Hi @noelyoo . Looks like we fixed this with https://github.com/truffle-box/tutorialtoken-box/commit/e73016ee4302e66c51386f1cd542a5be18f552e2. If you see other updates though, please let us know. Thanks!

ghost commented 6 years ago

@bmmpxf Cool. Since this issue resolved, I'm happy.