Skip to content

Commit

Permalink
fix: contract caching issue (#1341)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Mar 16, 2023
1 parent d08dfdd commit 5d5d7ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ape/managers/project/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ def create_manifest(
(self.project_manager.local_project._cache_folder / f"{name}.json").write_text(
contract_type.json()
)
if self._contracts is None:
self._contracts = {}

self._contracts[name] = contract_type

return manifest

def _compile(self, project_sources: _ProjectSources) -> Dict[str, ContractType]:
Expand Down

0 comments on commit 5d5d7ce

Please sign in to comment.