Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
clauBv23 committed Feb 17, 2025
1 parent eceab7c commit 8632f9a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/contracts/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export async function findPluginRepo(
);
}

console.log('from env var PLUGIN_REPO_ADDRESS');
return {
pluginRepo: PluginRepo__factory.connect(
process.env.PLUGIN_REPO_ADDRESS,
Expand All @@ -104,6 +105,8 @@ export async function findPluginRepo(
// from deployments
const pluginRepo = await hre.deployments.getOrNull(PLUGIN_REPO_PROXY_NAME);
if (pluginRepo) {
console.log('from deployments');

return {
pluginRepo: PluginRepo__factory.connect(pluginRepo.address, deployer),
ensDomain,
Expand Down Expand Up @@ -179,6 +182,11 @@ export async function getPluginRepoFactory(

const pluginRepoFactoryAddress = process.env.PLUGIN_REPO_FACTORY_ADDRESS;

console.log(
'pluginRepoFactoryAddress from env var PLUGIN_REPO_FACTORY_ADDRESS',
pluginRepoFactoryAddress
);

// from env var
if (!pluginRepoFactoryAddress || !isValidAddress(pluginRepoFactoryAddress)) {
throw new Error(
Expand Down

0 comments on commit 8632f9a

Please sign in to comment.