fix(vyper): file path

This commit is contained in:
Anthony Laibe 2019-02-18 10:45:21 +00:00 committed by Pascal Precht
parent 271a219c8b
commit e6eea1df06

View File

@ -49,11 +49,11 @@ class Vyper {
const compiled_object = {};
async.each(contractFiles,
function (file, fileCb) {
const className = path.basename(file.filename).split('.')[0];
const className = path.basename(file.path).split('.')[0];
compiled_object[className] = {};
async.parallel([
function getByteCode(paraCb) {
self.compileVyperContract(file.filename, false, (err, byteCode) => {
self.compileVyperContract(file.path, false, (err, byteCode) => {
if (err) {
return paraCb(err);
}
@ -64,7 +64,7 @@ class Vyper {
});
},
function getABI(paraCb) {
self.compileVyperContract(file.filename, true, (err, ABIString) => {
self.compileVyperContract(file.path, true, (err, ABIString) => {
if (err) {
return paraCb(err);
}