Skip to content

Commit

Permalink
♻️ Fix stderr Warnings in Vyper & Exclude VyperDeployer From Fuzzing
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Apr 24, 2024
1 parent 8294fd3 commit 0d6889f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/compile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys, subprocess

result = subprocess.run(["vyper"] + sys.argv[1:], capture_output=True, text=True)
if result.stderr != "":
if result.returncode != 0:
raise Exception("Error compiling: " + sys.argv[1])

# Remove any leading and trailing whitespace characters
Expand Down
9 changes: 9 additions & 0 deletions test/tokens/echidna/echidna-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@ deployer: "0x10000" # Set the contract deployer address to use.
sender: ["0x10000", "0x20000", "0x30000"] # Set the sender addresses to use.
allContracts: true # Enable fuzzing of all contracts.
allowFFI: true # Enable the foreign function interface (ffi) cheatcode.
filterFunctions: # Configure the list of methods to filter.
[
"VyperDeployer.deployContract(string,string)",
"VyperDeployer.deployContract(string,string,bytes)",
"VyperDeployer.deployContract(string,string,string,bool)",
"VyperDeployer.deployContract(string,string,bytes,string,bool)",
]
filterBlacklist: true # Blacklist methods in `filterFunctions`.

0 comments on commit 0d6889f

Please sign in to comment.