Skip to content

Commit

Permalink
fix approve
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Apr 12, 2024
1 parent 506c253 commit c72f6a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration_tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_ica_enabled(cronos, tmp_path):
proposal.write_text(json.dumps(proposal_src))
rsp = cli.submit_gov_proposal(proposal, from_="community")
assert rsp["code"] == 0, rsp["raw_log"]
approve_proposal(cronos, rsp)
approve_proposal(cronos, rsp["events"])
print("check params have been updated now")
p = cli.query_icacontroller_params()
assert not p["controller_enabled"]
Expand Down Expand Up @@ -931,7 +931,7 @@ def test_submit_send_enabled(cronos, tmp_path):
proposal.write_text(json.dumps(proposal_src))
rsp = cli.submit_gov_proposal(proposal, from_="community")
assert rsp["code"] == 0, rsp["raw_log"]
approve_proposal(cronos, rsp)
approve_proposal(cronos, rsp["events"])
print("check params have been updated now")
for exp in send_enable:
assert cli.query_bank_send(exp["denom"]) == [exp]
2 changes: 1 addition & 1 deletion integration_tests/test_gravity.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def test_gov_token_mapping(gravity, tmp_path, is_legacy):
rsp = submit_proposal(cli, tmp_path, is_legacy, denom, crc21.address)
assert rsp["code"] == 0, rsp["raw_log"]

approve_proposal(gravity.cronos, rsp)
approve_proposal(gravity.cronos, rsp["events"])

print("check the contract mapping exists now")
rsp = cli.query_contract_by_denom(denom)
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ def submit_any_proposal(cronos, tmp_path):
proposal_file.write_text(json.dumps(proposal_json))
rsp = cli.submit_gov_proposal(proposal_file, from_="community")
assert rsp["code"] == 0, rsp["raw_log"]
approve_proposal(cronos, rsp)
approve_proposal(cronos, rsp["events"])
grant_detail = cli.query_grant(granter_addr, grantee_addr)
assert grant_detail["granter"] == granter_addr
assert grant_detail["grantee"] == grantee_addr
Expand Down

0 comments on commit c72f6a1

Please sign in to comment.