Skip to content

Commit

Permalink
Cosmetic improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Jan 8, 2024
1 parent 67b3acc commit 5d4b2f9
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '../../typechain';
import {PluginSetupRefStruct} from '../../typechain/@aragon/osx/framework/dao/DAOFactory';
import {osxContracts} from '../../utils/helpers';
import {PluginRepoInfo, getPluginRepoInfo} from '../../utils/plugin-repo-info';
import {getPluginRepoInfo} from '../../utils/plugin-repo-info';
import {installPlugin, uninstallPlugin} from '../helpers/setup';
import {deployTestDao} from '../helpers/test-dao';
import {ADDRESS_ZERO} from '../unit-testing/common';
Expand All @@ -27,7 +27,6 @@ import {ethers} from 'hardhat';

const release = 1;
const hardhatForkNetwork = process.env.NETWORK_NAME ?? 'mainnet';
let pluginRepoInfo: PluginRepoInfo;
const pluginSettings: MajorityVotingBase.VotingSettingsStruct = {
minDuration: 60 * 60 * 24,
minParticipation: 1,
Expand All @@ -47,14 +46,13 @@ describe('GovernancePluginsSetup processing', function () {
before(async () => {
[deployer] = await ethers.getSigners();

const pri = getPluginRepoInfo(
const pluginRepoInfo = getPluginRepoInfo(
GovernancePluginsSetupParams.PLUGIN_REPO_ENS_NAME,
'hardhat'
);
if (!pri) {
if (!pluginRepoInfo) {
throw new Error('The plugin setup details are not available');
}
pluginRepoInfo = pri;

// PSP
psp = PluginSetupProcessor__factory.connect(
Expand Down

0 comments on commit 5d4b2f9

Please sign in to comment.