minimize call value

pull/784/head
Nikhil Parasaram 6 years ago
parent aafe06c0df
commit 4fc5a64aa4
  1. 3
      mythril/analysis/solver.py

@ -83,12 +83,13 @@ def get_transaction_sequence(global_state, constraints):
transactions.append(transaction) transactions.append(transaction)
# Constrain calldatasize # Constrain calldatasize
max_calldatasize = 5000 max_calldatasize = 5000
if max_calldatasize != None: if max_calldatasize is not None:
tx_constraints.append( tx_constraints.append(
UGE(max_calldatasize, transaction.call_data.calldatasize) UGE(max_calldatasize, transaction.call_data.calldatasize)
) )
minimize.append(transaction.call_data.calldatasize) minimize.append(transaction.call_data.calldatasize)
minimize.append(transaction.call_value)
concrete_transactions[tx_id] = tx_template.copy() concrete_transactions[tx_id] = tx_template.copy()

Loading…
Cancel
Save