Skip to content

Commit

Permalink
Merge pull request #34 from hyphacoop/sed-preprocess
Browse files Browse the repository at this point in the history
Use jq to re-format genesis file prior to preprocessing
  • Loading branch information
dasanchez authored Jun 21, 2023
2 parents 8a75332 + 380f4c2 commit b01dc6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cosmos_genesis_tinker.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ def create_preprocessing_file(self):
self.log_step("Creating preprocessing file " +
self.preprocessing_file)
self._preprocessing = True
shutil.copy2(self.input_file, self.preprocessing_file)
subprocess.run(f"jq '.' {self.input_file} > {self.preprocessing_file}",
check=True, shell=True)
# shutil.copy2(self.input_file, self.preprocessing_file)

def replace_delegator(self, old_delegator: Delegator, new_delegator: Delegator):
"""
Expand Down

0 comments on commit b01dc6e

Please sign in to comment.