mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-24 06:08:48 +00:00
commit
0fda113db3
@ -90,7 +90,9 @@ Compiler.prototype.compile = function(contractFiles) {
|
|||||||
var solidity = [], serpent = [];
|
var solidity = [], serpent = [];
|
||||||
|
|
||||||
for (var i = 0; i < contractFiles.length; i++) {
|
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') {
|
if (extension === 'sol') {
|
||||||
solidity.push(contractFiles[i]);
|
solidity.push(contractFiles[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user