From 1436d28ae1f2d6f23c064ee3f9673614b577d626 Mon Sep 17 00:00:00 2001 From: Matthias Nadler Date: Sat, 23 May 2020 19:19:52 +0200 Subject: [PATCH 1/2] fix: recompile moved contracts --- brownie/project/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/brownie/project/main.py b/brownie/project/main.py index 8af74267c..6b92769a5 100644 --- a/brownie/project/main.py +++ b/brownie/project/main.py @@ -181,6 +181,9 @@ def load(self) -> None: if test_path.exists(): test_path.unlink() continue + if not self._path.joinpath(build_json["sourcePath"]).exists(): + path.unlink() + continue self._build._add(build_json) interface_hashes = {} From a06909430f927e86ea59e802cf37eed9aacaa5ce Mon Sep 17 00:00:00 2001 From: Matthias Nadler Date: Sat, 23 May 2020 19:23:30 +0200 Subject: [PATCH 2/2] chore: changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 482f384ea..64d0d82d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Allow connections to `wss://` endpoints ([#542](https://github.com/iamdefinitelyahuman/brownie/pull/542)) - Improved `--gas` report ([#543](https://github.com/iamdefinitelyahuman/brownie/pull/543)) - +- Fixed error on moving contracts ([#545](https://github.com/iamdefinitelyahuman/brownie/pull/545)) ## [1.8.6](https://github.com/iamdefinitelyahuman/brownie/tree/v1.8.6) - 2020-05-19 ### Added