Skip to content

V2.2.1/migrate tests typescript#429

Open
atsignhandle wants to merge 3 commits intoopenlawteam:masterfrom
atsignhandle:v2.2.1/migrate-tests-typescript
Open

V2.2.1/migrate tests typescript#429
atsignhandle wants to merge 3 commits intoopenlawteam:masterfrom
atsignhandle:v2.2.1/migrate-tests-typescript

Conversation

@atsignhandle
Copy link
Copy Markdown

@atsignhandle atsignhandle commented Nov 4, 2021

Fixes #

Proposed Changes

  • Providing the associated Typescript tests which have been brought over with the HardHat tooling. Again, not so much propose changes as much as sharing our work.

@fforbeck fforbeck added blocked enhancement New feature or request labels Nov 16, 2021
Comment thread tasks/deploy.js
return await deployDao({
...hardHatImports,
deployFunction,
unitPrice: unitPrice,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected property shorthand.

Suggested change
unitPrice: unitPrice,
unitPrice,

Comment thread tasks/deploy.js
if (!process.env.OFFCHAIN_ADMIN_ADDR)
throw Error("Missing env var: OFFCHAIN_ADMIN_ADDR");
if (!process.env.VOTING_PERIOD_SECONDS)
throw Error("Missing env var: VOTING_PERIOD_SECONDS");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected { after 'if' condition.

Suggested change
throw Error("Missing env var: VOTING_PERIOD_SECONDS");
{throw Error("Missing env var: VOTING_PERIOD_SECONDS");}

Comment thread tasks/deploy.js
if (!process.env.DAO_OWNER_ADDR)
throw Error("Missing env var: DAO_OWNER_ADDR");
if (!process.env.ERC20_TOKEN_NAME)
throw Error("Missing env var: ERC20_TOKEN_NAME");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected { after 'if' condition.

Suggested change
throw Error("Missing env var: ERC20_TOKEN_NAME");
{throw Error("Missing env var: ERC20_TOKEN_NAME");}

})
);

if (ragequit) adapters.push(entryDao("ragequit", ragequit, {}));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected { after 'if' condition.

Suggested change
if (ragequit) adapters.push(entryDao("ragequit", ragequit, {}));
if (ragequit) {adapters.push(entryDao("ragequit", ragequit, {}));}


return {
dao: dao,
adapters: adapters,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected property shorthand.

Suggested change
adapters: adapters,
adapters,

Comment thread utils/HardhatUtil.js
};

const loadOrDeploy = async (contract, factory, args) => {
if (!factory) return null; //throw Error("Invalid contract interface");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected { after 'if' condition.

Suggested change
if (!factory) return null; //throw Error("Invalid contract interface");
if (!factory) {return null;} //throw Error("Invalid contract interface");

}

return {
dao: dao,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected property shorthand.

Suggested change
dao: dao,
dao,

@fforbeck fforbeck force-pushed the master branch 2 times, most recently from 6445409 to 615146d Compare March 22, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants