mirror of https://github.com/embarklabs/embark.git
use last part of contract file rather than 1st
This commit is contained in:
parent
d07ddaf1e8
commit
25a5898051
|
@ -74,7 +74,8 @@ Compiler.prototype.compile_serpent = function(contractFile) {
|
|||
|
||||
|
||||
Compiler.prototype.compile = function(contractFile) {
|
||||
var extension = contractFile.split('.')[1];
|
||||
var contractFileParts = contractFile.split('.')[1]
|
||||
,extension = contractFileParts[contractFileParts.length-1];
|
||||
|
||||
if (extension === 'sol') {
|
||||
return this.compile_solidity(contractFile);
|
||||
|
|
Loading…
Reference in New Issue