join serpent and solidity contracts
This commit is contained in:
parent
969e4015cb
commit
5a6a9e8b94
|
@ -98,9 +98,15 @@ Compiler.prototype.compile = function(contractFiles) {
|
|||
throw new Error("extension not known, got " + extension);
|
||||
}
|
||||
}
|
||||
//TODO: Get these compiling and returning together...problem might come with the JSON objects
|
||||
if (solidity.length > 0) return this.compile_solidity(solidity);
|
||||
if (serpent.length > 0) return this.compile_serpent(serpent);
|
||||
|
||||
var contracts = [];
|
||||
if (solidity.length > 0) {
|
||||
contracts.concat(this.compile_solidity(solidity));
|
||||
}
|
||||
if (serpent.length > 0) {
|
||||
contracts.concat(this.compile_serpent(serpent));
|
||||
}
|
||||
return contracts;
|
||||
};
|
||||
|
||||
module.exports = Compiler;
|
||||
|
|
Loading…
Reference in New Issue