diff --git a/lib/compiler.js b/lib/compiler.js index d843a5a49..e03119132 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -90,7 +90,9 @@ Compiler.prototype.compile = function(contractFiles) { var solidity = [], serpent = []; for (var i = 0; i < contractFiles.length; i++) { - var extension = contractFiles[i].split('.')[1]; + var contractParts = contractFiles[i].split('.'), + extension = contractParts[contractParts.length-1] + if (extension === 'sol') { solidity.push(contractFiles[i]); }