Skip to content

Commit

Permalink
feat: deprecate --no-test-constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Aug 24, 2024
1 parent 6419c17 commit 279e806
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions src/halmos/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,6 @@ def deploy_test(
creation_bytecode = Contract.from_hexcode(creation_hexcode)
ex.pgm = creation_bytecode

# use the given deployed bytecode if --no-test-constructor is enabled
if args.no_test_constructor:
deployed_bytecode = Contract.from_hexcode(deployed_hexcode)
ex.set_code(this, deployed_bytecode)
ex.pgm = deployed_bytecode
return ex

# create test contract
exs = list(sevm.run(ex))

Expand Down
5 changes: 0 additions & 5 deletions src/halmos/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,6 @@ class Config:
global_default=False,
)

no_test_constructor: bool = arg(
help="do not run the constructor of test contracts",
global_default=False,
)

ffi: bool = arg(
help="allow the usage of FFI to call external functions",
global_default=False,
Expand Down
3 changes: 0 additions & 3 deletions tests/regression/halmos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ storage-layout = "solidity"
# set default storage values to symbolic
symbolic-storage = false

# do not run the constructor of test contracts
no-test-constructor = false

# allow the usage of FFI to call external functions
ffi = false

Expand Down

0 comments on commit 279e806

Please sign in to comment.