Add the return condition (#1216)

pull/1221/head
Nikhil Parasaram 5 years ago committed by GitHub
parent 638f9369b9
commit d8bf5021c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mythril/analysis/modules/delegatecall.py

@ -56,6 +56,10 @@ class DelegateCallModule(DetectionModule):
constraints = [
to == ATTACKER_ADDRESS,
UGT(gas, symbol_factory.BitVecVal(2300, 256)),
state.new_bitvec(
"retval_{}".format(state.get_current_instruction()["address"]), 256
)
== 1,
]
for tx in state.world_state.transaction_sequence:

Loading…
Cancel
Save