Skip to content

Conversation

@ernestognw
Copy link
Member

@ernestognw ernestognw commented May 1, 2025

Adds and fixes compilation tests for Accounts, also simplifies the imports of community contracts from @openzeppelin/community-contracts/contracts to only @openzeppelin/community-contracts. This is the current imports we're recommending on the documentation.

@ernestognw ernestognw requested review from CoveMB and ericglau May 1, 2025 18:23
@ernestognw ernestognw marked this pull request as draft May 1, 2025 18:45
@ernestognw ernestognw changed the title Simplify @openzeppelin/community-contracts imports Add Account compilation tests and simplify community contracts imports May 1, 2025
@ernestognw ernestognw marked this pull request as ready for review May 1, 2025 19:46
@@ -0,0 +1,2 @@
@openzeppelin/community-contracts/=node_modules/@openzeppelin/community-contracts/contracts/
@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/
Copy link
Member

Choose a reason for hiding this comment

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

Why is remapping necessary for @openzeppelin/contracts-upgradeable?

Copy link
Member Author

Choose a reason for hiding this comment

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

tbh not sure but made erc20 compilation tests fail. I think the remappings task might be overriding some default remappings (?)

cost/benefit i thought it was fine to just add the remapping to avoid the rabbit hole 😆

@ernestognw ernestognw merged commit 975642a into master May 1, 2025
22 checks passed
@ernestognw ernestognw deleted the chore/simplify-community-imports branch May 1, 2025 20:31
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants