diff --git a/src/deployer/DeployerCore.ts b/src/deployer/DeployerCore.ts index 7fe48d6..93e3991 100644 --- a/src/deployer/DeployerCore.ts +++ b/src/deployer/DeployerCore.ts @@ -38,7 +38,7 @@ export class DeployerCore { ? ArtifactProcessor.tryGetContractName(deployParams.bytecode) : deployParams.contractName; - deployParams.bytecode = await Linker.linkBytecode( + deployParams.bytecode = await Linker.tryLinkBytecode( this._hre, contractName, deployParams.bytecode, diff --git a/src/deployer/Linker.ts b/src/deployer/Linker.ts index cc97236..0484637 100644 --- a/src/deployer/Linker.ts +++ b/src/deployer/Linker.ts @@ -20,7 +20,7 @@ export class Linker { return bytecodeToString(bytecode).indexOf("__") === -1; } - public static async linkBytecode( + public static async tryLinkBytecode( hre: HardhatRuntimeEnvironment, contractName: string, bytecode: string,