Skip to content

Commit

Permalink
Improve warning text
Browse files Browse the repository at this point in the history
@cristovaoth suggestion
  • Loading branch information
asgeir-s committed Dec 30, 2022
1 parent 66f6d91 commit c7e5f16
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/factory/deployModuleFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ export const deployModuleFactory = async (
const Factory = await hre.ethers.getContractFactory("ModuleProxyFactory");
if (Factory.bytecode !== FactoryInitCode) {
console.warn(
"WARNING: The ModuleProxyFactory init code from (src/factory/contracts.ts) " +
"MasterCopyInitData[KnownContracts.FACTORY].initCode does not match the init " +
"code of the contract code at contracts/factory/ModuleProxyFactory.sol. " +
"You are most likely the MasterCopyInitData[KnownContracts.FACTORY].initCode is outdated."
"The compiled ModuleProxyFactory (from src/factory/contracts.ts) is outdated, it does " +
"not match the bytecode stored at MasterCopyInitData[KnownContracts.FACTORY].initCod"
);
}
} catch (e) {
Expand Down

0 comments on commit c7e5f16

Please sign in to comment.