Remove solidity compile warnings

This commit is contained in:
lash 2023-03-17 22:10:56 +00:00
parent 0985321014
commit 29494b4366
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = eth-contract-registry name = eth-contract-registry
version = 0.9.1 version = 0.9.2
description = Ethereum Smart Contract key-value registry description = Ethereum Smart Contract key-value registry
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no

View File

@ -14,7 +14,7 @@ contract CICRegistry {
mapping (bytes32 => address) entries; // contractidentifier -> address mapping (bytes32 => address) entries; // contractidentifier -> address
mapping (bytes32 => bytes32[]) entryBindings; // contractidentifier -> chainidentifier mapping (bytes32 => bytes32[]) entryBindings; // contractidentifier -> chainidentifier
constructor(bytes32[] memory _identifiers) public { constructor(bytes32[] memory _identifiers) {
owner = msg.sender; owner = msg.sender;
for (uint i = 0; i < _identifiers.length; i++) { for (uint i = 0; i < _identifiers.length; i++) {
identifiers.push(_identifiers[i]); identifiers.push(_identifiers[i]);
@ -43,6 +43,7 @@ contract CICRegistry {
require(entries[_identifier] != address(0)); require(entries[_identifier] != address(0));
entryBindings[_identifier].push(_reference); entryBindings[_identifier].push(_reference);
return true;
} }
// Implements EIP 173 // Implements EIP 173