Skip to content

Commit

Permalink
Use crytic_compile.get_line_and_character_from_offset
Browse files Browse the repository at this point in the history
Synchronize with crytic/crytic-compile#201
  • Loading branch information
montyly committed Jul 9, 2021
1 parent 403e96c commit d8695f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slither/core/source_mapping/source_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def _compute_line(
Not done in an efficient way
"""
start_line, starting_column = compilation_unit.core.crytic_compile.get_line_from_offset(
start_line, starting_column = compilation_unit.core.crytic_compile.get_line_and_character_from_offset(
filename, start
)
end_line, ending_column = compilation_unit.core.crytic_compile.get_line_from_offset(
end_line, ending_column = compilation_unit.core.crytic_compile.get_line_and_character_from_offset(
filename, start + length
)
return list(range(start_line, end_line + 1)), starting_column, ending_column
Expand Down

0 comments on commit d8695f3

Please sign in to comment.