Skip to content

Commit

Permalink
Merge 0788e6a into 83bedd4
Browse files Browse the repository at this point in the history
  • Loading branch information
blitz-1306 committed Apr 7, 2021
2 parents 83bedd4 + 0788e6a commit bf49ba5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mythx_cli/fuzz/faas.py
Expand Up @@ -97,7 +97,7 @@ def create_faas_campaign(self, campaign_data, seed_state):
instr_meta = ScribbleMixin.get_arming_instr_meta()

if instr_meta is not None:
api_payload["instrumentation_metadata"] = instr_meta
api_payload["instrumentationMetadata"] = instr_meta
except Exception as e:
raise ScribbleMetaError(
f"Error getting Scribble arming metadata."
Expand Down
10 changes: 5 additions & 5 deletions mythx_cli/fuzz/run.py
Expand Up @@ -60,18 +60,18 @@ def fuzz_run(ctx, address, more_addresses, target):
# Mandatory config parameters verification
if "build_directory" not in config_options:
raise click.exceptions.UsageError(
"build_directory not found on .mythx.yaml config file"
"You need to provide your project's build directory in the .mythx.yaml config file"
"build_directory not found on .mythx.yml config file"
"\nYou need to provide your project's build directory in the .mythx.yml config file"
)
if "deployed_contract_address" not in config_options:
raise click.exceptions.UsageError(
"deployed_contract_address not found on .mythx.yaml config file."
"You need to provide the address where your main contract is deployed on the .mythx.yaml"
"deployed_contract_address not found on .mythx.yml config file."
"\nYou need to provide the address where your main contract is deployed on the .mythx.yml"
)
if not target and "targets" not in config_options:
raise click.exceptions.UsageError(
"Target not provided. You need to provide a target as the last parameter of the fuzz run command."
"\nYou can also set the target on the `fuzz` key of your .mythx.yaml config file."
"\nYou can also set the target on the `fuzz` key of your .mythx.yml config file."
"\nSee https://mythx-cli.readthedocs.io/en/latest/advanced-usage.html#configuration-using-mythx-yml"
" for more information."
)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_fuzz.py
Expand Up @@ -66,7 +66,7 @@ def test_fuzz_no_build_dir(tmp_path):

result = runner.invoke(cli, ["fuzz", "run", "contracts"])
assert (
"Error: build_directory not found on .mythx.yaml config file" in result.output
"Error: build_directory not found on .mythx.yml config file" in result.output
)
assert result.exit_code != 0

Expand All @@ -78,7 +78,7 @@ def test_fuzz_no_deployed_address(tmp_path):

result = runner.invoke(cli, ["fuzz", "run", "contracts"])
assert (
"Error: deployed_contract_address not found on .mythx.yaml config file."
"Error: deployed_contract_address not found on .mythx.yml config file."
in result.output
)
assert result.exit_code != 0
Expand Down

0 comments on commit bf49ba5

Please sign in to comment.