diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-07-05 01:20:51 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-07-05 01:20:51 +0800 |
commit | febbfd4204f72ea9371553dc3f2e349309b1bb0c (patch) | |
tree | f0543d5cb7948a13a555e9695a41b7f1053d798f /test/compilationTests/gnosis/Migrations.sol | |
parent | 7101a8905656d52cf9023a2e4340219d184920c3 (diff) | |
download | dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.gz dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.bz2 dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.lz dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.xz dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.zst dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.zip |
Adds visibility to compilation tests.
Diffstat (limited to 'test/compilationTests/gnosis/Migrations.sol')
-rw-r--r-- | test/compilationTests/gnosis/Migrations.sol | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compilationTests/gnosis/Migrations.sol b/test/compilationTests/gnosis/Migrations.sol index c7d09bd2..f1a3ea9d 100644 --- a/test/compilationTests/gnosis/Migrations.sol +++ b/test/compilationTests/gnosis/Migrations.sol @@ -8,15 +8,15 @@ contract Migrations { if (msg.sender == owner) _; } - constructor() { + constructor() public { owner = msg.sender; } - function setCompleted(uint completed) restricted { + function setCompleted(uint completed) public restricted { last_completed_migration = completed; } - function upgrade(address new_address) restricted { + function upgrade(address new_address) public restricted { Migrations upgraded = Migrations(new_address); upgraded.setCompleted(last_completed_migration); } |