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 = {