mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-10 22:05:55 +00:00
fix(vyper): file path
This commit is contained in:
parent
271a219c8b
commit
e6eea1df06
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user