Commit d0747b7c authored by Indeavr's avatar Indeavr

fix(lint)

parent cf0d19ac
......@@ -31,8 +31,10 @@ const main = async () => {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const artifact = require(artifactPath)
// handles the case - '\u' (\utils folder) is considered as an unicode encoded char
const pattern=/\\/g;
const relPath = path.relative(__dirname, artifactPath).replace(pattern,"/")
const pattern = /\\/g
const relPath = path
.relative(__dirname, artifactPath)
.replace(pattern, '/')
return `
let ${artifact.contractName}
try {
......
......@@ -27,7 +27,7 @@ const main = async () => {
})
const artifactNames = []
const pattern=/\\/g;
const pattern = /\\/g
for (const deploymentName of deploymentNames) {
const deploymentArtifacts = glob.sync(
......@@ -39,7 +39,9 @@ const main = async () => {
)
for (const artifactPath of deploymentArtifacts) {
const relPath = path.relative(__dirname, artifactPath).replace(pattern,"/")
const relPath = path
.relative(__dirname, artifactPath)
.replace(pattern, '/')
const contractName = path.basename(artifactPath, '.json')
const artifactName = `${deploymentName}__${contractName}`.replace(
/-/g,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment