diff --git a/cosmos_genesis_tinker.py b/cosmos_genesis_tinker.py index 102a569..ca84183 100755 --- a/cosmos_genesis_tinker.py +++ b/cosmos_genesis_tinker.py @@ -391,7 +391,8 @@ def replace_validator(self, old_validator: Validator, new_validator: Validator): # Sort coins in bank balances self.log_step("Sorting balances coins") - subprocess.run(f"jq '.app_state.bank.balances |= map(.coins |= sort_by(.denom))' {self.preprocessing_file} > sorted.json", + subprocess.run(f"jq '.app_state.bank.balances |= map(.coins |= sort_by(.denom))' " + \ + f"{self.preprocessing_file} > sorted.json", check=True, shell=True) subprocess.run(f"mv sorted.json {self.preprocessing_file}", check=True, shell=True)