Merge pull request #143 from SafeMarket/extension-fix

Extension fix
This commit is contained in:
Iuri Matias 2016-02-28 12:57:52 -05:00
commit 0fda113db3
1 changed files with 3 additions and 1 deletions

View File

@ -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]);
}