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

Panoramix produces decompiled contracts that contain escape characters to make the output look better in terminal, however, when redirecting it to the file, the code is hard to read. Unfortunately, this syntax highlighting is very tightly integrated in current version of panoramix so after a while I gave up on modifying the code. For those like me, who had the same issues I would recommend to strip escape characters out with sed. #541

Open
pcgandhinj466 opened this issue Oct 17, 2022 · 0 comments

Comments

@pcgandhinj466
Copy link

Panoramix produces decompiled contracts that contain escape characters to make the output look better in terminal, however, when redirecting it to the file, the code is hard to read. Unfortunately, this syntax highlighting is very tightly integrated in current version of panoramix so after a while I gave up on modifying the code. For those like me, who had the same issues I would recommend to strip escape characters out with sed.

panoramix contractAddress | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' > decompiled-contract

If anybody else has a better approach or you recommend other decompilation tool, let me know!

Originally posted by @martinkersner in palkeo/panoramix#30

@Har01d Har01d transferred this issue from Blockchair/Blockchair.Support Oct 21, 2022
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