From f8f582d57e1299d64fd8bafc493cf01db413772b Mon Sep 17 00:00:00 2001 From: crosschainer <68580992+crosschainer@users.noreply.github.com> Date: Tue, 23 Apr 2024 18:10:49 +0200 Subject: [PATCH] Update query.py --- src/xian/methods/query.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/xian/methods/query.py b/src/xian/methods/query.py index 37606241..5603bfab 100644 --- a/src/xian/methods/query.py +++ b/src/xian/methods/query.py @@ -53,13 +53,10 @@ def query(self, req) -> ResponseQuery: # http://localhost:26657/abci_query?path="/contract/con_some_contract" if path_parts[0] == "contract": - self.client.raw_driver.flush_cache() result = self.client.raw_driver.get_contract(path_parts[1]) # http://localhost:26657/abci_query?path="/contract_methods/con_some_contract" if path_parts[0] == "contract_methods": - self.client.raw_driver.flush_cache() - contract_code = self.client.raw_driver.get_contract(path_parts[1]) if contract_code is not None: funcs = parser.methods_for_contract(contract_code) @@ -67,8 +64,6 @@ def query(self, req) -> ResponseQuery: # http://localhost:26657/abci_query?path="/contract_vars/con_some_contract" if path_parts[0] == "contract_vars": - self.client.raw_driver.flush_cache() - contract_code = self.client.raw_driver.get_contract(path_parts[1]) if contract_code is not None: result = parser.variables_for_contract(contract_code)