mirror of https://github.com/embarklabs/embark.git
use last part of contract file rather than 1st
This commit is contained in:
parent
9c3f31e351
commit
cb0ac1e3ca
|
@ -89,7 +89,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…
Reference in New Issue