Remove solidity compile warnings

This commit is contained in:
lash 2023-03-17 21:46:01 +00:00
parent fbaef91428
commit b59a487495
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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