Allow importing solidity files from current folder (#717)
This commit is contained in:
parent
60d2b61fb3
commit
faf1d16b99
@ -574,7 +574,7 @@ class ManticoreEVM(Manticore):
|
|||||||
with tempfile.NamedTemporaryFile() as temp:
|
with tempfile.NamedTemporaryFile() as temp:
|
||||||
temp.write(source_code)
|
temp.write(source_code)
|
||||||
temp.flush()
|
temp.flush()
|
||||||
p = Popen([solc, '--combined-json', 'abi,srcmap,srcmap-runtime,bin,hashes,bin-runtime', temp.name], stdout=PIPE, stderr=PIPE)
|
p = Popen([solc, '--combined-json', 'abi,srcmap,srcmap-runtime,bin,hashes,bin-runtime', '--allow-paths','.', temp.name], stdout=PIPE, stderr=PIPE)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
output = json.loads(p.stdout.read())
|
output = json.loads(p.stdout.read())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user