Skip to content

fix wrong indexing on _removeChild#10

Merged
maxnorm merged 4 commits intomainfrom
fix/remove-last-erc721-token
Sep 10, 2025
Merged

fix wrong indexing on _removeChild#10
maxnorm merged 4 commits intomainfrom
fix/remove-last-erc721-token

Conversation

@maxnorm
Copy link
Owner

@maxnorm maxnorm commented Sep 9, 2025

When testing & doing a demo project, i found that the _removeChild failed when removing the last token of a contract.

The issue was due to the indexing based on 1 but needed to be a 0-based indexing for array swap. It's missed the - 1

I also separated the CI of build and test into 2 different git actions

@maxnorm maxnorm linked an issue Sep 9, 2025 that may be closed by this pull request
@maxnorm maxnorm added the bug Something isn't working label Sep 9, 2025
@maxnorm maxnorm self-assigned this Sep 9, 2025
@maxnorm maxnorm merged commit d674bd2 into main Sep 10, 2025
4 checks passed
@maxnorm maxnorm deleted the fix/remove-last-erc721-token branch September 10, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix _remove on last token from contract

1 participant