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

Add Additional Checks on Assets Folder #386

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Add Additional Checks on Assets Folder #386

merged 1 commit into from
Feb 19, 2024

Conversation

nlordell
Copy link
Collaborator

This PR adds additional tests on the JSON files in the assets/ directory to ensure that:

  1. Only canonical addresses are used
  2. That the networkAddresses object is ordered
  3. Networks are included for every contract

This led to some changes 👇.

@@ -50,6 +50,7 @@
"255": "0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",
"280": "0xcB8e5E438c5c2b45FbE17B02Ca9aF91509a8ad56",
"288": "0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",
"291": "0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

"200101": "0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",
"200202": "0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",
"333999": "0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Missing, but unable to verify. Using what the address should be based on other contracts.

@@ -58,6 +58,7 @@
"336": "0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",
"338": "0x727a77a074D1E6c4530e814F89E618a3298FC044",
"420": "0x727a77a074D1E6c4530e814F89E618a3298FC044",
"424": "0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -144,6 +145,7 @@
"54211": "0x727a77a074D1E6c4530e814F89E618a3298FC044",
"56288": "0x727a77a074D1E6c4530e814F89E618a3298FC044",
"57000": "0x727a77a074D1E6c4530e814F89E618a3298FC044",
"58008": "0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@ElvisKrop ElvisKrop left a comment

Choose a reason for hiding this comment

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

Awesome 🚀
I like it! 😁

Copy link
Member

@mmv08 mmv08 left a comment

Choose a reason for hiding this comment

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

This was missing for so long!

@mmv08 mmv08 merged commit f396380 into main Feb 19, 2024
1 check passed
@mmv08 mmv08 deleted the check-assets branch February 19, 2024 11:15
@mmv08 mmv08 mentioned this pull request Feb 19, 2024
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.

3 participants