mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-23 21:58:48 +00:00
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…
x
Reference in New Issue
Block a user