Skip to content

Commit

Permalink
recover client
Browse files Browse the repository at this point in the history
for more info, cosmos/ibc-go#3674
  • Loading branch information
mmsqe committed Apr 12, 2024
1 parent 71ea92c commit 9f21d45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions integration_tests/cosmoscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,25 +1174,24 @@ def gov_propose_token_mapping_change_legacy(
)
)

def gov_propose_update_client_legacy(self, proposal, **kwargs):
def ibc_recover_client(self, proposal, **kwargs):
kwargs.setdefault("gas_prices", DEFAULT_GAS_PRICE)
kwargs.setdefault("gas", 600000)
rsp = json.loads(
self.raw(
"tx",
"gov",
"submit-legacy-proposal",
"update-client",
"ibc",
"client",
"recover-client",
proposal.get("subject_client_id"),
proposal.get("substitute_client_id"),
"-y",
from_=proposal.get("from"),
keyring_backend="test",
# content
title=proposal.get("title"),
description=proposal.get("description"),
deposit=proposal.get("deposit"),
type="Text",
summary=proposal.get("summary"),
chain_id=self.chain_id,
home=self.data_dir,
stderr=subprocess.DEVNULL,
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/test_ibc_update_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ def check_status():
return status != "Active"

wait_for_fn("status change", check_status)
rsp = cli.gov_propose_update_client_legacy(
rsp = cli.ibc_recover_client(
{
"subject_client_id": "07-tendermint-1",
"substitute_client_id": "07-tendermint-2",
"from": "validator",
"title": "update-client-title",
"description": "update-client-description",
"summary": "summary",
"deposit": "1basetcro",
},
)
Expand Down

0 comments on commit 9f21d45

Please sign in to comment.