Skip to content

Commit

Permalink
fix: source_map_full output in vyper-json (#3464)
Browse files Browse the repository at this point in the history
source_map_full output fails with a KeyError when user requests
evm.sourceMapFull but not evm.sourceMap. this commit fixes.
  • Loading branch information
charles-cooper committed May 26, 2023
1 parent 070b0cf commit 056dfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/cli/vyper_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def format_to_output_dict(compiler_data: Dict) -> Dict:
if "source_map" in data:
evm["sourceMap"] = data["source_map"]["pc_pos_map_compressed"]
if "source_map_full" in data:
evm["sourceMapFull"] = data["source_map"]
evm["sourceMapFull"] = data["source_map_full"]

return output_dict

Expand Down

0 comments on commit 056dfd8

Please sign in to comment.