From f5195b2dddba03d94c1d1521510221e55a231ff5 Mon Sep 17 00:00:00 2001 From: Piotr Rudnik Date: Fri, 11 Feb 2022 13:56:33 +0100 Subject: [PATCH] Don't update semantics every time form ENS --- ethtx/providers/semantic_providers/repository.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ethtx/providers/semantic_providers/repository.py b/ethtx/providers/semantic_providers/repository.py index c9bfe6cb..6af63bab 100644 --- a/ethtx/providers/semantic_providers/repository.py +++ b/ethtx/providers/semantic_providers/repository.py @@ -80,7 +80,9 @@ def _read_stored_semantics( provider=self._web3provider._get_node_connection(chain_id), address=address, ) - self.update_semantics(address_semantics) + + if address_semantics.name != address_semantics.address: + self.update_semantics(address_semantics) return address_semantics