Skip to content

Commit

Permalink
update an import for latest vyper commit
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Mar 14, 2024
1 parent ac21744 commit 038f8d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boa/contracts/vyper/ast_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Any, Optional

import vyper.ast as vy_ast
from vyper.codegen.core import getpos
from vyper.ir.compile_ir import getpos


def get_block(source_code: str, lineno: int, end_lineno: int) -> str:
Expand Down Expand Up @@ -45,6 +45,8 @@ def reason_at(


# build a reverse map from the format we have in pc_pos_map to AST nodes
# (TODO: we might not need this anymore since vyper exports map from pc
# to ast node directly as of 0.4.0)
def ast_map_of(ast_node):
ast_map = {}
nodes = [ast_node] + ast_node.get_descendants(reverse=True)
Expand Down

0 comments on commit 038f8d8

Please sign in to comment.