Skip to content

Fix transfer to balance bug#77

Merged
spengrah merged 2 commits intodevelopfrom
fix/transfer-to-balance-check
Dec 27, 2022
Merged

Fix transfer to balance bug#77
spengrah merged 2 commits intodevelopfrom
fix/transfer-to-balance-check

Conversation

@spengrah
Copy link
Copy Markdown
Member

To preserve the invariant that the internal token balance (ie balanceOf mapping in storage, not the balanceOf() public function) of a given address is never higher than 1, the transferHat function should check that the to recipient of the hat does not already have an internal token balance of 1.

This PR fixes the bug.

@spengrah spengrah marked this pull request as ready for review December 27, 2022 17:18
@spengrah spengrah merged commit 9c36a0e into develop Dec 27, 2022
@spengrah spengrah deleted the fix/transfer-to-balance-check branch December 27, 2022 17:18
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.

1 participant