From cd71b6bc18dbc0b62a8f3bde657b2aed3fb0d20e Mon Sep 17 00:00:00 2001 From: huangyi Date: Thu, 26 Sep 2024 16:36:18 +0800 Subject: [PATCH] fix integration test --- integration_tests/cosmoscli.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/integration_tests/cosmoscli.py b/integration_tests/cosmoscli.py index ff0b99e4b3..b7ba51e178 100644 --- a/integration_tests/cosmoscli.py +++ b/integration_tests/cosmoscli.py @@ -247,6 +247,18 @@ def tx_search_rpc(self, criteria: str, order=None): assert "error" not in rsp, rsp["error"] return rsp["result"]["txs"] + def query_account(self, addr, **kwargs): + return json.loads( + self.raw( + "query", + "auth", + "account", + addr, + home=self.data_dir, + **kwargs, + ) + ) + def distribution_commission(self, addr): coin = json.loads( self.raw(