diff --git a/integration_tests/cosmoscli.py b/integration_tests/cosmoscli.py index 0ba4991df1..ff0b99e4b3 100644 --- a/integration_tests/cosmoscli.py +++ b/integration_tests/cosmoscli.py @@ -1687,6 +1687,24 @@ def update_permissions(self, address, permissions, **kwargs): rsp = self.event_query_tx_for(rsp["txhash"]) return rsp + def store_blocklist(self, data, **kwargs): + kwargs.setdefault("gas_prices", DEFAULT_GAS_PRICE) + kwargs.setdefault("gas", DEFAULT_GAS) + rsp = json.loads( + self.raw( + "tx", + "cronos", + "store-block-list", + data, + "-y", + home=self.data_dir, + **kwargs, + ) + ) + if rsp["code"] == 0: + rsp = self.event_query_tx_for(rsp["txhash"]) + return rsp + def rollback(self): self.raw("rollback", home=self.data_dir)