Skip to content

Commit 5581a3e

Browse files
committed
Added logging for compile errors
1 parent 25fcf3e commit 5581a3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

solc_helper

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def compile_solidity(code)
1111
json_string= `curl -s -X POST --data '{"jsonrpc":"2.0","method":"eth_compileSolidity","params":["#{code}"],"id":1}' http://127.0.0.1:8100`
1212
json_object = JSON.parse(json_string)
1313
compiled_object = json_object['result']
14+
puts json_object if compiled_object.nil?
1415
compiled_object
1516
end
1617

0 commit comments

Comments
 (0)