def get_links_address(self, links):
    contract_name_and_address = dict()
    for link in links:
        for contract in self.contracts.keys():
            contract = contract.split(':')
            if (contract[0] == link[:(- 5)]):
                contract_name_and_address.setdefault(link[:(- 5)], contract[1])
            elif (contract[0] == link):
                contract_name_and_address.setdefault(link, contract[1])
            else:
                continue
    return contract_name_and_address
def get_links_address(self, links):
    contract_name_and_address = dict()
    for link in links:
        for contract in self.contracts.keys():
            contract = contract.split(':')
            if (contract[0] == link[:(- 5)]):
                contract_name_and_address.setdefault(link[:(- 5)], contract[1])
            elif (contract[0] == link):
                contract_name_and_address.setdefault(link, contract[1])
            else:
                continue
    return contract_name_and_address