Skip to content

Commit 660921d

Browse files
committed
Look for all contracts (even those imported from external sources)
1 parent 31265b1 commit 660921d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inspector_facet/abi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def hardhat_project_abis(project_dir: str, build_dirname: Optional[str] = None):
117117
Path to foundry project
118118
"""
119119
if build_dirname is None:
120-
build_dirname = "artifacts/contracts"
120+
build_dirname = "artifacts"
121121

122122
build_dir = os.path.join(project_dir, build_dirname)
123123
build_files = glob.glob(os.path.join(build_dir, "**/*.json"), recursive=True)
@@ -134,5 +134,5 @@ def hardhat_project_abis(project_dir: str, build_dirname: Optional[str] = None):
134134
abis[contract_name] = contract_abi
135135
except Exception:
136136
continue
137-
137+
138138
return abis

0 commit comments

Comments
 (0)