diff --git a/vyper/cli/vyper_compile.py b/vyper/cli/vyper_compile.py index 9099cef94c..82eba63f32 100755 --- a/vyper/cli/vyper_compile.py +++ b/vyper/cli/vyper_compile.py @@ -266,7 +266,7 @@ def compile_files( output = vyper.compile_code( file.source_code, - contract_name=str(file_path), + contract_name=str(file.path), source_id=file.source_id, input_bundle=input_bundle, output_formats=final_formats, diff --git a/vyper/compiler/output.py b/vyper/compiler/output.py index 26d5d1628c..23d79500eb 100644 --- a/vyper/compiler/output.py +++ b/vyper/compiler/output.py @@ -157,7 +157,7 @@ def build_method_identifiers_output(compiler_data: CompilerData) -> dict: module_t = compiler_data.vyper_module_folded._metadata["type"] functions = module_t.functions - return {k: hex(v) for func in functions for k, v in func.method_ids.items()} + return {k: hex(v) for func in functions for k, v in func._metadata["type"].method_ids.items()} def build_abi_output(compiler_data: CompilerData) -> list: