Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Sep 26, 2024
1 parent a091448 commit 3032932
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions integration_tests/cosmoscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3032932

Please sign in to comment.