From 56a7fa0b5e67adce1f1819c54a020a6e64c96883 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Fri, 29 Dec 2023 12:11:49 +0800 Subject: [PATCH] fix gov --- integration_tests/cosmoscli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integration_tests/cosmoscli.py b/integration_tests/cosmoscli.py index 29aeb9155..2ab3f23f7 100644 --- a/integration_tests/cosmoscli.py +++ b/integration_tests/cosmoscli.py @@ -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", @@ -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 = {