From 0c268e0c6ea5289336628560b6b3b0d4828f19d4 Mon Sep 17 00:00:00 2001 From: Dante Sanchez Date: Mon, 20 Nov 2023 11:34:14 -0500 Subject: [PATCH] fix long line --- cosmos_genesis_tinker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)