Skip to content

deprecated test#423

Merged
Joeysantoro merged 5 commits intodevelopfrom
feat/deprecated-check
Dec 31, 2021
Merged

deprecated test#423
Joeysantoro merged 5 commits intodevelopfrom
feat/deprecated-check

Conversation

@Joeysantoro
Copy link
Contributor

@Joeysantoro Joeysantoro commented Dec 30, 2021

Adds deprecated contracts signoff category for proposals_config.

Adds an integration test to require that these contracts are in fact deprecated and not contained anywhere in dependencies map

xklob
xklob previously requested changes Dec 31, 2021
const contract = contracts[j];
const category = addresses[contract].category;
if (category === 'External' || category === 'Deprecated') {
if (category === 'External') {
Copy link
Contributor

Choose a reason for hiding this comment

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

You should make an enum for these categories in the types file and import it here instead of using string literals

Copy link
Contributor

Choose a reason for hiding this comment

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

(and also probably use said enum everywhere else if you can do that without manually editing 500+ lines of code)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it already was an enum. Used it here

}
});

it('all dependencies bidirectional', async function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this wasn't an edit on this pr but the string "Check dependencies all dependencies bidirectional" doesn't tell me what it's checking, maybe something like "Check dependencies are listed bidirectionally" would?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed this and others

xklob
xklob previously approved these changes Dec 31, 2021
@Joeysantoro Joeysantoro merged commit df2ceb7 into develop Dec 31, 2021
@Joeysantoro Joeysantoro deleted the feat/deprecated-check branch December 31, 2021 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments