mirror of
git://holbrook.no/eth-token-index
synced 2024-12-12 08:46:09 +01:00
Remove solidity compile warnings
This commit is contained in:
parent
fbaef91428
commit
b59a487495
@ -1,4 +1,6 @@
|
||||
- 0.4.1
|
||||
* Remove solidity compile warnings
|
||||
- 0.4.0
|
||||
* upgrade deps
|
||||
* Upgrade deps
|
||||
- 0.2.6
|
||||
* Add writer cli tool
|
||||
|
@ -1,6 +1,6 @@
|
||||
[metadata]
|
||||
name = eth-token-index
|
||||
version = 0.4.0
|
||||
version = 0.4.1
|
||||
description = Token symbol to address unique index
|
||||
author = Louis Holbrook
|
||||
author_email = dev@holbrook.no
|
||||
|
@ -15,7 +15,7 @@ contract TokenUniqueSymbolIndex {
|
||||
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); // EIP173
|
||||
event AddressAdded(address indexed addedAccount, uint256 indexed accountIndex); // AccountsIndex
|
||||
|
||||
constructor() public {
|
||||
constructor() {
|
||||
owner = msg.sender;
|
||||
tokens.push(address(0));
|
||||
}
|
||||
@ -70,6 +70,7 @@ contract TokenUniqueSymbolIndex {
|
||||
function transferOwnership(address _newOwner) public returns (bool) {
|
||||
require(msg.sender == owner);
|
||||
newOwner = _newOwner;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Implements OwnedAccepter
|
||||
@ -81,6 +82,7 @@ contract TokenUniqueSymbolIndex {
|
||||
owner = newOwner;
|
||||
newOwner = address(0);
|
||||
emit OwnershipTransferred(oldOwner, owner);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Implements Writer
|
||||
|
Loading…
Reference in New Issue
Block a user