Skip to content

Commit d8695f3

Browse files
committed
Use crytic_compile.get_line_and_character_from_offset
Synchronize with crytic/crytic-compile#201
1 parent 403e96c commit d8695f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slither/core/source_mapping/source_mapping.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ def _compute_line(
3737
3838
Not done in an efficient way
3939
"""
40-
start_line, starting_column = compilation_unit.core.crytic_compile.get_line_from_offset(
40+
start_line, starting_column = compilation_unit.core.crytic_compile.get_line_and_character_from_offset(
4141
filename, start
4242
)
43-
end_line, ending_column = compilation_unit.core.crytic_compile.get_line_from_offset(
43+
end_line, ending_column = compilation_unit.core.crytic_compile.get_line_and_character_from_offset(
4444
filename, start + length
4545
)
4646
return list(range(start_line, end_line + 1)), starting_column, ending_column

0 commit comments

Comments
 (0)