-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: issue where ape wouldn't recompile changed contracts [APE-1498] (#…
- Loading branch information
Showing
5 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
tests/integration/cli/projects/script/scripts/output_contract_view_methods.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import click | ||
|
||
import ape | ||
|
||
""" | ||
Part of test that makes sure a contract is re-compiled | ||
before running the script. The test changes a view method | ||
and asserts the changed method's name appears in the script | ||
output. | ||
""" | ||
|
||
|
||
def main(): | ||
contract = ape.project.TestContractVy | ||
for method in contract.contract_type.view_methods: | ||
click.echo(method.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
"only-dependencies", | ||
"test", | ||
"bad-contracts", | ||
"script", | ||
"with-dependencies", | ||
"with-contracts", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters