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