Allow importing solidity files from current folder (#717)

This commit is contained in:
feliam 2018-01-29 20:28:31 -03:00 committed by GitHub
parent 60d2b61fb3
commit faf1d16b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -574,7 +574,7 @@ class ManticoreEVM(Manticore):
with tempfile.NamedTemporaryFile() as temp:
temp.write(source_code)
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:
output = json.loads(p.stdout.read())