Change get_list() to as_list()

pull/897/head
Nikhil Parasaram 6 years ago
parent cb0156c520
commit 7656287409
  1. 3
      mythril/laser/ethereum/state/constraints.py
  2. 2
      mythril/laser/ethereum/transaction/symbolic.py

@ -56,7 +56,8 @@ class Constraints(list):
"""
raise NotImplementedError
def get_list(self) -> List[Bool]:
@property
def as_list(self) -> List[Bool]:
"""
:return: returns the list of constraints
"""

@ -133,7 +133,7 @@ def _setup_global_state_for_execution(laser_evm, transaction) -> None:
)
global_state.mstate.constraints += transaction.world_state.node.constraints
new_node.constraints = global_state.mstate.constraints.get_list()
new_node.constraints = global_state.mstate.constraints.as_list()
global_state.world_state.transaction_sequence.append(transaction)
global_state.node = new_node

Loading…
Cancel
Save