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

replace duplicated Bitmaps with an powerful already importd one #211

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yuhuajing
Copy link

The flattern files will faile because the duplicated BitMaps import, thus we strongly suggest that you could replace the imported BitMaps library in the /contracts/token/erc721/abstract/ERC721Hybrid.sol with _import {BitMaps} from "solidity-bits/contracts/BitMaps.sol"; in the \contracts\token\erc721\erc721psi\ERC721PsiBurnable.sol.

@yuhuajing yuhuajing requested a review from a team as a code owner April 25, 2024 07:54
@drinkcoffee
Copy link
Contributor

@yuhuajing we are discussing the merits of your PR. One decision we have made is that we won't include IDE specific files in the repo. As such, could you update your PR to gitignore the whole .idea directory, and remove the associated files from your PR

@drinkcoffee
Copy link
Contributor

A result of the change beyond flatten files possibly being easier, is that the resulting contract should be smaller. ERC721Psi calls set and get on solidity-bits version of BitMaps, where as ImmutableERC721Base uses the same functions in Open Zeppelin's code. This means that two copies of these functions will be included in the final contract bytecode. Making the change described in this PR will mean there is only one copy of the set and get functions.

@drinkcoffee drinkcoffee self-requested a review April 26, 2024 03:48
Copy link
Contributor

@drinkcoffee drinkcoffee left a comment

Choose a reason for hiding this comment

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

Please .gitignore the whole .idea directory, and remove .idea files. We have decided not to include IDE specific files in the repo.

@yuhuajing yuhuajing requested a review from a team as a code owner May 6, 2024 02:32
Copy link

openzeppelin-code bot commented May 6, 2024

replace duplicated Bitmaps with an powerful already importd one

Generated at commit: 2f24a4829eb77aa1a0f5d0d5ceda8e5b84c295d0

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
1
0
11
28
42
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@yuhuajing yuhuajing force-pushed the replaceBitMaps branch 2 times, most recently from 5ed7878 to 3b75c53 Compare May 6, 2024 02:45
@yuhuajing
Copy link
Author

Please .gitignore the whole .idea directory, and remove .idea files. We have decided not to include IDE specific files in the repo.

Already done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants