commit b59a4874955660e21b9203946a3ff93896558ea1
parent fbaef914289a15e38104192205b03e65f6cefe85
Author: lash <dev@holbrook.no>
Date: Fri, 17 Mar 2023 21:46:01 +0000
Remove solidity compile warnings
Diffstat:
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/python/CHANGELOG b/python/CHANGELOG
@@ -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
diff --git a/python/setup.cfg b/python/setup.cfg
@@ -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
diff --git a/solidity/TokenUniqueSymbolIndex.sol b/solidity/TokenUniqueSymbolIndex.sol
@@ -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