Use node uid vs transaction

pull/485/head
Joran Honig 6 years ago
parent 8b61134e8d
commit c62067ba30
  1. 6
      mythril/laser/ethereum/state.py

@ -214,11 +214,11 @@ class GlobalState:
def instruction(self):
return self.get_current_instruction()
def new_bitvec(self, name):
def new_bitvec(self, name, size=256):
transaction_id = self.current_transaction.id
node_id = self.current_transaction.uid
node_id = self.node.uid
return BitVec("{}_{}_{}".format(transaction_id, node_id, name))
return BitVec("{}_{}_{}".format(transaction_id, node_id, name), size)
class WorldState:
"""

Loading…
Cancel
Save