Rm unused evm workspace function (#666)

* Rm unused function

Since this func was added, _generate_testcase_callback was overrided
in ManticoreEVM totally bypassing this function, which is now unused

* add comment
This commit is contained in:
Mark Mossberg
2017-12-22 16:24:21 -05:00
committed by GitHub
parent 7875aaf5fd
commit 8413f7e947
2 changed files with 2 additions and 15 deletions
+2
View File
@@ -1065,6 +1065,8 @@ class ManticoreEVM(Manticore):
# each object knows its secrets, each class should be able to report its
# final state
#super(ManticoreEVM, self)._generate_testcase_callback(state, name, message)
# TODO(mark): Refactor ManticoreOutput to let the platform be more in control
# so this function can be fully ported to EVMWorld.generate_workspace_files.
def flagged(flag):
return '(*)' if flag else ''
testcase = self._output.testcase()
-15
View File
@@ -2459,18 +2459,3 @@ class EVMWorld(Platform):
self.current._push(value)
self.current.pc += self.current.instruction.size
def generate_workspace_files(self):
ret = {}
for i, tx in enumerate(self.transactions):
name = 'tx.{}'.format(i)
data = {
'to': tx.address,
'from': tx.caller,
'data': solver.get_value(self.constraints, tx.data).encode('hex'),
'value': tx.value if not issymbolic(tx.value) else '{symbolic!}'
}
import json
ret[name] = json.dumps(data, indent=4)
return ret