Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit ae63e6a

Browse files
committed
Fix styling in Migrations.sol file
1 parent 6281254 commit ae63e6a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

contracts/Migrations.sol

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
pragma solidity ^0.4.11;
1+
pragma solidity 0.4.18;
2+
23

34
contract Migrations {
45
address public owner;
5-
uint public last_completed_migration;
6+
uint public lastCompletedMigration;
67

78
modifier restricted() {
89
if (msg.sender == owner) _;
910
}
1011

11-
function Migrations() {
12+
function Migrations() public {
1213
owner = msg.sender;
1314
}
1415

15-
function setCompleted(uint completed) restricted {
16-
last_completed_migration = completed;
16+
function setCompleted(uint completed) public restricted {
17+
lastCompletedMigration = completed;
1718
}
1819

19-
function upgrade(address new_address) restricted {
20-
Migrations upgraded = Migrations(new_address);
21-
upgraded.setCompleted(last_completed_migration);
20+
function upgrade(address newAddress) public restricted {
21+
Migrations upgraded = Migrations(newAddress);
22+
upgraded.setCompleted(lastCompletedMigration);
2223
}
2324
}

0 commit comments

Comments
 (0)