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