-
Notifications
You must be signed in to change notification settings - Fork 110
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
base: master
Are you sure you want to change the base?
V2.2.1/migrate tests typescript #429
Conversation
return await deployDao({ | ||
...hardHatImports, | ||
deployFunction, | ||
unitPrice: unitPrice, |
There was a problem hiding this comment.
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.
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"); |
There was a problem hiding this comment.
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.
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"); |
There was a problem hiding this comment.
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.
throw Error("Missing env var: ERC20_TOKEN_NAME"); | |
{throw Error("Missing env var: ERC20_TOKEN_NAME");} |
}) | ||
); | ||
|
||
if (ragequit) adapters.push(entryDao("ragequit", ragequit, {})); |
There was a problem hiding this comment.
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.
if (ragequit) adapters.push(entryDao("ragequit", ragequit, {})); | |
if (ragequit) {adapters.push(entryDao("ragequit", ragequit, {}));} |
|
||
return { | ||
dao: dao, | ||
adapters: adapters, |
There was a problem hiding this comment.
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.
adapters: adapters, | |
adapters, |
}; | ||
|
||
const loadOrDeploy = async (contract, factory, args) => { | ||
if (!factory) return null; //throw Error("Invalid contract interface"); |
There was a problem hiding this comment.
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.
if (!factory) return null; //throw Error("Invalid contract interface"); | |
if (!factory) {return null;} //throw Error("Invalid contract interface"); |
} | ||
|
||
return { | ||
dao: dao, |
There was a problem hiding this comment.
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.
dao: dao, | |
dao, |
6445409
to
615146d
Compare
Fixes #
Proposed Changes