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 version to addresses files #149

Merged
merged 5 commits into from
Sep 8, 2023
Merged

Conversation

iainnash
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@oveddan oveddan left a comment

Choose a reason for hiding this comment

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

similar comments to

@@ -2,6 +2,7 @@
"DROP_METADATA_RENDERER": "0x5914d9a241008b9f02f22811bf3a77e02b84d226",
"EDITION_METADATA_RENDERER": "0x192ce8267cbab9c3c477d61e85d7f0c5fe3b46af",
"ERC721DROP_IMPL": "0x8237F421357F87a23ed0CFf3a5586172F210A21B",
"ERC721DROP_IMPL_VERSION": 14,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this would be easier to parse as each deployment having a key, with an address and a version, something like:

ERC721DROP_IMPL: {
    address: "0x82..."
    version: 14
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

also...please check if this change breaks:
node script/copy-deployed-contracts.mjs

Copy link
Collaborator

Choose a reason for hiding this comment

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

and also can we have the deployment script set these versions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added the solidity to fix the json import script.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We may want to revamp these entire files but having a flat structure is easier to work with in forge. They did add attribute getters which i think solve this but I would rather revamp these entire files rather than just change this field. Can look into a stacked diff.

@iainnash iainnash merged commit 17160a8 into main Sep 8, 2023
3 checks passed
@iainnash iainnash deleted the add_version_to_addresses_files branch September 8, 2023 23:44
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