mirror of https://github.com/embarklabs/embark.git
commit
0fda113db3
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue