Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.2.1/migrate tests typescript #429

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

atsignhandle
Copy link

@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
return await deployDao({
...hardHatImports,
deployFunction,
unitPrice: unitPrice,
Copy link
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,

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
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");}

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
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
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
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,

};

const loadOrDeploy = async (contract, factory, args) => {
if (!factory) return null; //throw Error("Invalid contract interface");
Copy link
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
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