-
Notifications
You must be signed in to change notification settings - Fork 1
feat: ERC-7858 and some optimize #61
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
Signed-off-by: MASDXI <[email protected]>
@ADISAKBOONMARK @parametprame check this then i will develop a test for it. |
I will check it today. |
adding logic to the functio that inheritance form the IERC7858
allowing _update function to transfer expired tokenId
almost done |
function insert(List storage self, uint256 index, bool check) internal { | ||
if (check) { | ||
if (!contains(self, index)) return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be contains(self, index)
?
if (check) { | ||
if (!contains(self, index)) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add a check
flag into remove()
and shrink()
?
I found some bug on ERC-7858Epoch when calling |
function insert(uint256 index) public { | ||
list.insert(index, false); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be?
function insert(uint256 index) public {
list.insert(index, true);
}
function insertLazy(uint256 index) public {
list.insert(index, false);
}
focus on NFT and refactor the sorted list to way more efficient