Add memload.

This commit is contained in:
Jacques Wagener 2018-08-22 23:58:38 +02:00
parent 36f8f770d1
commit d4a1e05ee0
No known key found for this signature in database
GPG Key ID: C294D1025DA0E923
2 changed files with 6 additions and 1 deletions

View File

@ -48,7 +48,7 @@ setup(
install_requires=[
"py-evm==0.2.0a26",
"eth-tester==0.1.0b28",
"eth-vyper==0.1.0b3"
"vyper>=0.1.0b2"
],
setup_requires=['setuptools-markdown'],
python_requires='>=3.6, <4',

View File

@ -119,6 +119,11 @@ class VyperDebugCmd(cmd.Cmd):
_, local_vars = self._get_fn_name_locals()
return cmds + [x for x in local_vars.keys() if x.startswith(line)]
def mload(self, line):
""" Read something from memory """
pos = line.strip()
self.stdout.write(to_hex(to_hex(self.computation.memory_read(pos, 32))))
def default(self, line):
line = line.strip()
fn_name, local_variables = self._get_fn_name_locals()