Update cli.py (#1828)

* Update cli.py

refactor with chain assignment to make code more Pythonic, concise and efficient.

* Reformat

---------

Co-authored-by: Nikhil Parasaram <nikhilparasaram@gmail.com>
z3
anonymousdouble 11 months ago committed by GitHub
parent 373558c58a
commit f61c2d4515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      mythril/interfaces/cli.py

@ -784,10 +784,10 @@ def execute_command(
print("Disassembly: \n" + disassembler.contracts[0].get_creation_easm()) print("Disassembly: \n" + disassembler.contracts[0].get_creation_easm())
elif args.command == SAFE_FUNCTIONS_COMMAND: elif args.command == SAFE_FUNCTIONS_COMMAND:
args.unconstrained_storage = True args.no_onchain_data = (
args.disable_dependency_pruning
) = args.unconstrained_storage = True
args.pruning_factor = 1 args.pruning_factor = 1
args.disable_dependency_pruning = True
args.no_onchain_data = True
function_analyzer = MythrilAnalyzer( function_analyzer = MythrilAnalyzer(
strategy=strategy, disassembler=disassembler, address=address, cmd_args=args strategy=strategy, disassembler=disassembler, address=address, cmd_args=args
) )

Loading…
Cancel
Save