Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate replacing json cleaning scripts with jq or awk commands #4

Open
JuanCoRo opened this issue Jan 11, 2024 · 0 comments
Open

Comments

@JuanCoRo
Copy link
Member

The JSON produced by the stateDiff modifier is escaped (particularly, the one produced in test/kontrol/KontrolDeployment.sol). Before feeding that JSON to Kontrol, we unescape it with the script test/kontrol/scripts/json/clean_json.py. We also reverse the deployments/hardhat/.deployment JSON with test/kontrol/scripts/json/reverse_key_values.py.

To stick to Optimism's toolchain and reduce the amount of code to maintain, we could investigate how to reproduce the functionalities of these scripts with a tool like jq or awk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant