Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations.sol Missing “;” #15

Open
yuandi0823 opened this issue Aug 27, 2017 · 1 comment
Open

Migrations.sol Missing “;” #15

yuandi0823 opened this issue Aug 27, 2017 · 1 comment

Comments

@yuandi0823
Copy link

yuandi0823 commented Aug 27, 2017

Migrations.sol:7:3: ParserError: Expected token Semicolon
got 'RBrace'
}
^

@nkmishra1997
Copy link

nkmishra1997 commented Sep 9, 2017

replace code in migrations.sol

contract Migrations {
  address public owner;
  uint public last_completed_migration;

  modifier restricted() {
    if (msg.sender == owner) _;
  }

  function Migrations() {
    owner = msg.sender;
  }

  function setCompleted(uint completed) restricted {
    last_completed_migration = completed;
  }

  function upgrade(address new_address) restricted {
    Migrations upgraded = Migrations(new_address);
    upgraded.setCompleted(last_completed_migration);
  }
} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants