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

feat: adding btt tests for bToken #167

Merged
merged 3 commits into from
Jul 23, 2024
Merged

feat: adding btt tests for bToken #167

merged 3 commits into from
Jul 23, 2024

Conversation

wei3erHase
Copy link
Member

No description provided.

@wei3erHase wei3erHase requested a review from 0xteddybear July 18, 2024 13:27
Copy link

@0xteddybear 0xteddybear left a comment

Choose a reason for hiding this comment

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

desireable: keep the checks on insufficient balance from the preexisting tests, since they are different branches

don't really have an opinion on wether to assert on the ERC20 events

test/unit/BToken.tree Show resolved Hide resolved
BToken::increaseApproval
├── when sender is address zero
│ └── it should revert
├── when spender is address zero

Choose a reason for hiding this comment

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

how could we get to this? I imagine the assertion was added to OZ to avoid programeer errors when calling the internal method, but is there any context in where an external caller could beaddress(0)?

Copy link
Member Author

Choose a reason for hiding this comment

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

hmmm is not, but is an actual possible branch, it actually happens inside _approve so tbh i wouldn't care so much for it

@wei3erHase wei3erHase requested a review from 0xteddybear July 22, 2024 09:34
Copy link

@0xteddybear 0xteddybear left a comment

Choose a reason for hiding this comment

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

🚀

@wei3erHase wei3erHase merged commit eef9f2a into dev Jul 23, 2024
4 checks passed
@wei3erHase wei3erHase deleted the feat/btoken-btt branch July 23, 2024 09:29
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.

2 participants