Skip to content

Commit

Permalink
fix gov
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Dec 29, 2023
1 parent 93cfde8 commit 56a7fa0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integration_tests/cosmoscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def gov_propose_legacy(self, proposer, kind, proposal, no_validate=False, **kwar
with tempfile.NamedTemporaryFile("w") as fp:
json.dump(proposal, fp)
fp.flush()
return json.loads(
rsp = json.loads(
self.raw(
"tx",
"gov",
Expand All @@ -72,6 +72,9 @@ def gov_propose_legacy(self, proposer, kind, proposal, no_validate=False, **kwar
chain_id=self.chain_id,
)
)
if rsp["code"] == 0:
rsp = self.event_query_tx_for(rsp["txhash"])
return rsp

def transfer(self, from_, to, coins, generate_only=False, **kwargs):
default_kwargs = {
Expand Down

0 comments on commit 56a7fa0

Please sign in to comment.