Skip to content

Commit

Permalink
lint(js-client): fixes linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewmeconry committed Nov 23, 2023
1 parent 9a0a080 commit ef1edf0
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 229 deletions.
2 changes: 2 additions & 0 deletions packages/js-client/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
require('@nomiclabs/hardhat-ethers');
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
Expand All @@ -16,3 +17,4 @@ module.exports = {
},
},
};
/* eslint-enable */
2 changes: 2 additions & 0 deletions packages/js-client/test-environment.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
const TestEnvironment = require('jest-environment-hardhat/jsdom');

module.exports = class CustomTestEnvironment extends TestEnvironment.default {
Expand All @@ -23,3 +24,4 @@ module.exports = class CustomTestEnvironment extends TestEnvironment.default {
return super.getVmContext();
}
};
/* eslint-enable */
42 changes: 19 additions & 23 deletions packages/js-client/test/helpers/build-daos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,25 @@ export async function createDao(
}

export async function buildMyPluginDao(deployment: Deployment) {
try {
const latestVersion = await deployment.myPluginRepo[
'getLatestVersion(address)'
](deployment.myPluginSetup.address);
return await createDao(
deployment.daoFactory,
const latestVersion = await deployment.myPluginRepo[
'getLatestVersion(address)'
](deployment.myPluginSetup.address);
return await createDao(
deployment.daoFactory,
{
metadata: '0x',
subdomain: 'test-' + Math.floor(Math.random() * 10000),
trustedForwarder: AddressZero,
daoURI: 'ipfs://...',
},
[
{
metadata: '0x',
subdomain: 'test-' + Math.floor(Math.random() * 10000),
trustedForwarder: AddressZero,
daoURI: 'ipfs://...',
},
[
{
pluginSetupRef: {
pluginSetupRepo: deployment.myPluginRepo.address,
versionTag: latestVersion.tag,
},
data: defaultAbiCoder.encode(['uint256'], [1]),
pluginSetupRef: {
pluginSetupRepo: deployment.myPluginRepo.address,
versionTag: latestVersion.tag,
},
]
);
} catch (e) {
throw e;
}
data: defaultAbiCoder.encode(['uint256'], [1]),
},
]
);
}
Loading

0 comments on commit ef1edf0

Please sign in to comment.