Skip to content

Commit 9558cd2

Browse files
authored
Merge pull request #35 from SpringRole/upgraded-solc
moving to solidity 0.4.24
2 parents 6cf1aca + 93d8338 commit 9558cd2

File tree

11 files changed

+38
-641
lines changed

11 files changed

+38
-641
lines changed

contracts/AirDrop.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.19;
1+
pragma solidity ^0.4.24;
22

33
/**
44
* @title Token
@@ -20,7 +20,7 @@ contract Ownable {
2020
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
2121
* account.
2222
*/
23-
function Ownable() {
23+
constructor() public {
2424
owner = msg.sender;
2525
}
2626

@@ -40,7 +40,7 @@ contract Ownable {
4040
*/
4141
function transferOwnership(address newOwner) onlyOwner public {
4242
require(newOwner != address(0));
43-
OwnershipTransferred(owner, newOwner);
43+
emit OwnershipTransferred(owner, newOwner);
4444
owner = newOwner;
4545
}
4646

@@ -54,7 +54,7 @@ contract AirDrop is Ownable {
5454
/*
5555
constructor function to set token address
5656
*/
57-
function AirDrop(address _tokenAddress){
57+
constructor(address _tokenAddress) public {
5858
tokenInstance = Token(_tokenAddress);
5959
}
6060

contracts/Attestation.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
pragma solidity ^0.4.19;
1+
pragma solidity ^0.4.24;
22

33
contract Attestation {
44

55
event Attest(address _address,string _type,string _data);
66

77
function write(string _type,string _data) public returns (bool) {
8-
Attest(msg.sender,_type,_data);
8+
emit Attest(msg.sender,_type,_data);
99
return true;
1010
}
1111
}

contracts/InviteToken.sol

Lines changed: 0 additions & 244 deletions
This file was deleted.

0 commit comments

Comments
 (0)