Skip to content

Commit

Permalink
fix: some duplication resulting of the merge
Browse files Browse the repository at this point in the history
  • Loading branch information
clauBv23 committed Mar 14, 2024
1 parent d8722e2 commit df043c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
5 changes: 0 additions & 5 deletions packages/contracts/plugin-settings.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import buildMetadata from './src/build-metadata.json';
import releaseMetadata from './src/release-metadata.json';
import {generateRandomName} from './utils/helpers';
import {VersionTag} from '@aragon/osx-commons-sdk';

export const PLUGIN_CONTRACT_NAME = 'Admin';
export const PLUGIN_SETUP_CONTRACT_NAME = 'AdminSetup';
export const PLUGIN_REPO_ENS_SUBDOMAIN_NAME = 'admin'; // 'admin.plugin.dao.eth'

// Pick an ENS name for your plugin. E.g., 'my-cool-plugin'.
// For more details, visit https://devs.aragon.org/docs/osx/how-it-works/framework/ens-names.
export const PLUGIN_REPO_ENS_SUBDOMAIN_NAME = generateRandomName(8);

// Specify the version of your plugin that you are currently working on. The first version is v1.1.
// For more details, visit https://devs.aragon.org/docs/osx/how-it-works/framework/plugin-management/plugin-repo.
export const VERSION: VersionTag = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,6 @@ async function fixture(): Promise<FixtureResult> {
throw `Deployments are not available on network ${network}.`;
}

const network = getNetworkNameByAlias(productionNetworkName);
if (network === null) {
throw new UnsupportedNetworkError(productionNetworkName);
}
const networkDeployments = getLatestNetworkDeployment(network);
if (networkDeployments === null) {
throw `Deployments are not available on network ${network}.`;
}

// Get the `PluginSetupProcessor` from the network
const psp = PluginSetupProcessor__factory.connect(
networkDeployments.PluginSetupProcessor.address,
Expand Down
9 changes: 0 additions & 9 deletions packages/contracts/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,6 @@ export async function findPluginRepo(
throw `Deployments are not available on network ${network}.`;
}

const network = getNetworkNameByAlias(productionNetworkName);
if (network === null) {
throw new UnsupportedNetworkError(productionNetworkName);
}
const networkDeployments = getLatestNetworkDeployment(network);
if (networkDeployments === null) {
throw `Deployments are not available on network ${network}.`;
}

const registrar = ENSSubdomainRegistrar__factory.connect(
networkDeployments.PluginENSSubdomainRegistrarProxy.address,
deployer
Expand Down

0 comments on commit df043c9

Please sign in to comment.