Add memload.
This commit is contained in:
parent
36f8f770d1
commit
d4a1e05ee0
2
setup.py
2
setup.py
|
@ -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',
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue