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

Enable vyper source maps #170

Closed
wants to merge 2 commits into from
Closed

Enable vyper source maps #170

wants to merge 2 commits into from

Conversation

ggrieco-tob
Copy link
Member

No description provided.

@@ -62,8 +62,10 @@ def compile(self, crytic_compile: "CryticCompile", **kwargs: str):
crytic_compile.abis[contract_name] = info["abi"]
crytic_compile.bytecodes_init[contract_name] = info["bytecode"].replace("0x", "")
crytic_compile.bytecodes_runtime[contract_name] = info["bytecode_runtime"].replace("0x", "")
crytic_compile.srcmaps_init[contract_name] = []
crytic_compile.srcmaps_runtime[contract_name] = []
crytic_compile.srcmaps_init[contract_name] = [info["source_map"]["pc_pos_map_compressed"]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pc_pos_map_compressed is the same for init and runtime bytecode, I am assuming this is not correct?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is the case, but I'm not 100% sure about it.

@montyly
Copy link
Member

montyly commented Apr 22, 2021

Replaced by #171

@montyly montyly closed this Apr 22, 2021
@montyly montyly deleted the fix-vyper-source-maps branch April 26, 2021 08:58
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

Successfully merging this pull request may close these issues.

2 participants