diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 6a4a664..64e2825 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -17,6 +17,7 @@ module.exports = { "error", {"allowBlockStart": true} ], + "no-console": "off", "object-curly-spacing": "error", "one-var": [ "error", @@ -27,8 +28,6 @@ module.exports = { "never" ], - "no-console": "warn", - "no-continue": "warn", "no-duplicate-imports": "warn", "no-inline-comments": "warn", "no-magic-numbers": "warn", diff --git a/src/deploy.ts b/src/deploy.ts index 72eccd1..30daa83 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -47,17 +47,16 @@ const _linkBytecode = (artifact: Artifact, libraries: Map) => { fixups ] of Object.entries(fileReferences)) { const addr = libraries.get(libName); - if (addr === undefined) { - continue; - } - for (const fixup of fixups) { - bytecode = - bytecode.substr( - 0, - 2 + fixup.start * 2 - ) + - addr.substr(2) + - bytecode.substr(2 + (fixup.start + fixup.length) * 2); + if (addr !== undefined) { + for (const fixup of fixups) { + bytecode = + bytecode.substr( + 0, + 2 + fixup.start * 2 + ) + + addr.substr(2) + + bytecode.substr(2 + (fixup.start + fixup.length) * 2); + } } } }